Help on Multiple Command Line Switches?? 
Author Message
 Help on Multiple Command Line Switches??

I'm not sure if this is what you want, but here goes....

If Instr(Command,"-debug" Then
        Do_Something
Else
        Do_Something_Else
EndIf

HTH's.

--
Kind regards,
        Tony Jones, Queensland, Australia
        Southern Cross Visual Basic Code and Links
        http://www.*-*-*.com/ ~scvb



Quote:
>  Hi there.

> Here is what I'm trying to do...

> ' Sample Code Start.
> Dim strModemPort%, X as long

> strModemPort = 1
> X = Shell(app.path & "\program.pif -port" & strModemPort)
> ' so far, so good... I'll be shelling the .pif file with the command line
> switch
> ' being "-port1"

> ' But, the command line in the .pif file is the following:
> ' "Program.exe -debug" -- or whatever...

> ' I would like what is actually run to be:
> ' "Program.exe -debug  -port1"

> ' and I'd like to be able to change the command line in the .pif file
> (ie. -debug)
> ' so that I can always have the modem port set properly (according to a
ini
> file
> ' or registry setting), but set debug switches in the .pif file on the
fly,
> if needed...
> ' The order of the switches does not matter, just as long as they're all
> there...

> ' Sample Code End. :-)

> Please e-mail me at:

> Thanks for your help...

> Chuck.



Tue, 07 Mar 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Q: Help on Multiple Command Line Switches??

2. Help on Multiple Command Line Switches??

3. Q: Help on Multiple Command Line Switches??

4. Help on Multiple Command Line Switches??

5. Q: Help on Multiple Command Line Switches??

6. need help with command line switches

7. Help with command line switch

8. Help with command line switch

9. Help with command line switch

10. Help with Win 95 screen saver command line - command line.zip [1/1]

11. what are valid outlook 2002 command line switches?

12. Looking for OL2K command line switch to open email template

 

 
Powered by phpBB® Forum Software