As far as I know you cannot use the "OR" function when comparing strings. You need to use a nested IF. This code will do what you want.
proc main
string sSite,sRow
integer iRow = 3 ;Row 3 of Excel
integer iSite = 1 ;Column 1 of Excel
long DDEChan
ddeinit DDEChan "excel" "sheet1"...
That worked perfectly!
Here is the code I wrote:
integer port_num
;see if there is a command line option being passed
atoi s0 port_num
if port_num > 0
set modem connection port_num
s0 = "0"
exit
endif
The batch file command looks like this:
start pw5.exe <scriptname>.wax 3
The...
The only problem with that is that I would have to have seperate scripts for each window/com port. I want to run the same script in each window/com port.
Thanks for the reply, but I know how to change the modem connection in a script and I already do that. I am trying to use a batch file to open multiple instances of Procomm each with a specific Com Port. I was hoping to do it at the command line. Any other suggestions?
Is there a command line option to start Procomm using a specific Com Port? I would like to open multiple windows, using a batch file, each using a different (and specific) Com Port.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.