I want to run a exe through batch file and that exe needs a directory which is a different folder.Target OS is Windows Server 2003(Citrix). Please share the command. I have tried as follwoing:
cd "PATH OF DIRECTORY"
PATH OF EXE with arguements. But this command is not working.
Application is a vendor MSI and when we try to launch the exe manually in cmd also it does not work,
The main problem is with the working directory and i have to create that in the batch file. Pleae help me soon.
2 Comments
[ + ] Show comments
-
Is the folder on the same letter ? Please post youre batchskript. - Johnzko 11 years ago
-
I found the issue batch file should be run from the working directory. And one more question is How to suppress cmd window when running the batch file with in the bat file itself.?? - shaik.asifafzal 11 years ago
Answers (1)
Please log in to answer
Posted by:
worzie
11 years ago
To answer your second question, I have had luck with this vbs code in a separate vbs file:
CreateObject("Wscript.Shell").Run "JRE-MSI-Uninstaller.bat",0,True
So uploading the batch file in this case is also required instead of using the dynamic K1000 batch creator because you need to update the vbs file with the name of the bat file.
Then I run this vbs by launching a program wscript JRE-MSI-Uninstaller.VBS