Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gmacted

    If stricmp sString "String1" OR "String2"

    Shorter/Cleaner code is always the goal. Unfortunately, in this case I know of no way around it. && and || does work with both integers and floats.
  2. gmacted

    If stricmp sString "String1" OR "String2"

    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"...
  3. gmacted

    Command Line Option to select a specific Com Port

    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...
  4. gmacted

    Command Line Option to select a specific Com Port

    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.
  5. gmacted

    Command Line Option to select a specific 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?
  6. gmacted

    Command Line Option to select a specific Com Port

    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.

Part and Inventory Search

Back
Top