Execute command to execute command prompt command
Posted: Wed Sep 14, 2011 1:56 pm
Hi
I am trying to use the execute command to run a MS-Dos prompt command, but its not working...I get the error that it cant run command "XYZ"...in the error messages....but when I copy the error details and paste it in command prompt...it runs 100%.
I am running windows 7 with powerswitch 08.
Heres how I use it:
Execute Command Module settings:
Command or Path:rd
Arguments: /S /Q "C:ttest[Name.Proper]
Output:None
(So this is basically to delete a specific folder relating to the incoming file...which as I said works 100% If I do it manually)
I thought of maybe having to call the command prompt first like this:
Execute Command Module settings:
Command or Path:c:windowssystem32cmd.exe
Arguments: rd /S /Q "C:ttest[Name.Proper]
But with this the process just hangs on executing command until it times out.
Any one maybe have any ideas as to where I am missing something? Im not 100% sure about how the execute command works...I got it working for extracting and compressing winzip files, where I just called the zip7 module....but this seems different, I assumed it automatically uses the command propmt, but Im obviously wrong about something
Any help will be fantastic!
I am trying to use the execute command to run a MS-Dos prompt command, but its not working...I get the error that it cant run command "XYZ"...in the error messages....but when I copy the error details and paste it in command prompt...it runs 100%.
I am running windows 7 with powerswitch 08.
Heres how I use it:
Execute Command Module settings:
Command or Path:rd
Arguments: /S /Q "C:ttest[Name.Proper]
Output:None
(So this is basically to delete a specific folder relating to the incoming file...which as I said works 100% If I do it manually)
I thought of maybe having to call the command prompt first like this:
Execute Command Module settings:
Command or Path:c:windowssystem32cmd.exe
Arguments: rd /S /Q "C:ttest[Name.Proper]
But with this the process just hangs on executing command until it times out.
Any one maybe have any ideas as to where I am missing something? Im not 100% sure about how the execute command works...I got it working for extracting and compressing winzip files, where I just called the zip7 module....but this seems different, I assumed it automatically uses the command propmt, but Im obviously wrong about something
Any help will be fantastic!