/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: cygan 17 years ago
Fifth Degree Brown Belt
0
HI AEK

I have used a custom action to call a batch file using wise 6.0

http://itninja.com/question/how-do-you-roll-out-new-machines?1933
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ