| View previous topic :: View next topic |
| Author |
Message |
camadams Newbie
Joined: 03 Oct 2005 Posts: 2
|
Posted: Mon Oct 03, 2005 2:54 am Post subject: Need to Set Environment Variables |
|
|
I am launching an application from my VDS script that needs to get information from environment variables. To do this, from VDS I call a bat file that uses SET to setup the environment, then calls my app.
I want to get rid of the batch file and somehow set up the environmental variables then launch the app. But I cannot see how to do this within VDS. We are using VDS 2.2
Is this possible? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
camadams Newbie
Joined: 03 Oct 2005 Posts: 2
|
Posted: Tue Oct 04, 2005 5:40 am Post subject: Fantastic |
|
|
Thanks heaps for that, it works a treat. I had to extend it a bit..
| Code: |
%A = set myvar1=valueA
%B = set myvar2=valueB
runh cmd /c (%A & %B & myprog.exe p1=val p2=val p3=val)
|
|
|
| Back to top |
|
 |
|