Batch file help to run exe
Hi
I need a batch file command to run the exe from other folder (sub folder).
Please help me
Thanks.
I need a batch file command to run the exe from other folder (sub folder).
Please help me
Thanks.
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
pjgeutjens
13 years ago
Posted by:
reethu005
13 years ago
Hi PJ,
The scenario is,
There are 2 folders Folder A and Folder B.
Folder A has a batch file and setup.exe. Folder B has a MSI.
The batch file runs the setup.exe. After installing the setup.exe, I need to install the MSI which is in Folder B.
These 2 folders are in a network shared drive which will change later.
My question is how to specify the network path with pushd command.
Thanks.
The scenario is,
There are 2 folders Folder A and Folder B.
Folder A has a batch file and setup.exe. Folder B has a MSI.
The batch file runs the setup.exe. After installing the setup.exe, I need to install the MSI which is in Folder B.
These 2 folders are in a network shared drive which will change later.
My question is how to specify the network path with pushd command.
Thanks.
Posted by:
pjgeutjens
13 years ago
as long as the folder structure on the drive share is predictable you can play around with pushd and popd.
For your specific example, let's assume you're running the script from folder A
Guess I'm telling you to just play around with it abit [:D]
PJ
For your specific example, let's assume you're running the script from folder A
pushd %~dp0 //get the Folder A path and go to it
pushd .. //Go to the parent folder
set parent=%cd%
popd //go back to the current folder
-- do what you need to do here--
pushd "%parent%\Folder B" // go to folder B
-- do what you need in folder B --
popd
Guess I'm telling you to just play around with it abit [:D]
PJ
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.