How to run the batch file through Wise script
Hi All,
I am trying to execute a batch file in my wise script.
I am copying the files from the network install location to a local dir in C:\
Ex: Set variable TestDIR to C:\Test
I then want to run the batch file say abc.bat
In my script I have tried using Execute Program command
.EXE Path: C:\WINDOWS\System32\cmd.exe
Command Line: "%TestDIR%\abc.bat" -silent
Default Directory: %TestDIR%
Checked the box - Wait for program to Exit
When I compile and execute this script:
I only see a command window on the screen with the cursor blinking on C:\TestDIR>
The batch file does not execute.
If I go to the command prompt on the same machine and open a command prompt.
Go to the TestDir and type abc.bat - silent (it executes).
Please Help me on how to excute the batch file through wise script.
Thanks in advance.
I am trying to execute a batch file in my wise script.
I am copying the files from the network install location to a local dir in C:\
Ex: Set variable TestDIR to C:\Test
I then want to run the batch file say abc.bat
In my script I have tried using Execute Program command
.EXE Path: C:\WINDOWS\System32\cmd.exe
Command Line: "%TestDIR%\abc.bat" -silent
Default Directory: %TestDIR%
Checked the box - Wait for program to Exit
When I compile and execute this script:
I only see a command window on the screen with the cursor blinking on C:\TestDIR>
The batch file does not execute.
If I go to the command prompt on the same machine and open a command prompt.
Go to the TestDir and type abc.bat - silent (it executes).
Please Help me on how to excute the batch file through wise script.
Thanks in advance.
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
aogilmor
14 years ago
Posted by:
reethu005
14 years ago
Posted by:
murali.bhat
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.