Question about calling .bat in Wise Script
I am trying to call a .bat file in my wise script.
Logic:
I copy installation files from the network install location to a local test dir called C:\TestDir
%MYDIR% = TestDir
I then want to run the install file called install.bat.
In my script currently:
I have tried this command (Execute Program) in the Wise Script:
.EXE Path: C:\WINDOWS\System32\cmd.exe
Command Line: "%MYDIR%\Install.bat" -silent
Default Directory: %MYDIR%
Window Size: Normal
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 install.bat does not execute.
WHY???
If I go to the command prompt on the same machine and open a command prompt.
Go to the TestDir and type install.bat - silent (it executes).
I am a little baffled as to why would install.bat not run via my wise script??
HELP PLEASE.
Logic:
I copy installation files from the network install location to a local test dir called C:\TestDir
%MYDIR% = TestDir
I then want to run the install file called install.bat.
In my script currently:
I have tried this command (Execute Program) in the Wise Script:
.EXE Path: C:\WINDOWS\System32\cmd.exe
Command Line: "%MYDIR%\Install.bat" -silent
Default Directory: %MYDIR%
Window Size: Normal
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 install.bat does not execute.
WHY???
If I go to the command prompt on the same machine and open a command prompt.
Go to the TestDir and type install.bat - silent (it executes).
I am a little baffled as to why would install.bat not run via my wise script??
HELP PLEASE.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
cygan
17 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.