| View previous topic :: View next topic |
| Author |
Message |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Sat Dec 17, 2005 11:12 pm Post subject: Pass info to VDS Program when run... |
|
|
| Can I pass some info to a VDS program when launching it, like a command line opiton or something in the shell command? If so, how do I capture that info? I'm using VDS4. |
|
| Back to top |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Sat Dec 17, 2005 11:29 pm Post subject: |
|
|
Hi Mark,
Any switches passed into the program can be read with %1 thru %9. for instance:
test.exe /opt1 /opt2
%1 will be equal to "opt1" and %2 will be equal to "opt2".
Good luck,
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
MarkTrubo Contributor


Joined: 27 May 2001 Posts: 148 Location: Long Island, NY
|
Posted: Sun Dec 18, 2005 1:10 am Post subject: |
|
|
Funny, but with the hundreds of VDS programs I've written over the years, I never really needed this until today.
Most of the time I needed to pass complicated stuff, so I always just wrote it to a file which I then read with the next program. For today's issue, that was not practical. I'm passing callerid to a customer order look-up program.
thanks gang! |
|
| Back to top |
|
 |
|