| View previous topic :: View next topic |
| Author |
Message |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Mon Oct 19, 2009 3:54 pm Post subject: %Comspec% not sending the command. |
|
|
With the following lines I only get a DOS window (the command is not being passed to the DOS window)
| Code: |
SetWorkingDir, C:\WINDOWS\System32\
Run, %Comspec% net start wzcsvc,, ;hide |
|
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Mon Oct 19, 2009 4:51 pm Post subject: |
|
|
| Code: |
SetWorkingDir, C:\WINDOWS\System32\
Run, %Comspec% /c net start wzcsvc,, ;hide
|
|
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Mon Oct 19, 2009 5:36 pm Post subject: |
|
|
| It works Thank you. But why is "/c" needed? |
|
| Back to top |
|
 |
flak
Joined: 02 Oct 2009 Posts: 283
|
|
| Back to top |
|
 |
|