Batch file and executable

duderoo

Expert Member
Joined
Jun 7, 2005
Messages
3,372
Reaction score
240
Location
Earth
If I have a batch file that says WSManager.exe /JOB="C:\Program Files\WorkSpace Manager\CPT WSM Jobs\CPT Open and Closed Matters Job.wsbj" /RUN /EXIT how does the PC know where to find WSmanager.exe or is there a setting I need to set somewhere?
 
Two ways:
1) The file is in the same location as the batch file

2) The location of the file is declared as an environment variable. Right-click My Computer -> Advanced -> Environment Variables. In the System Variables block, scroll down to Path, and click Edit. If the folder containing the file is listed here, you can run the executable from anywhere without defining the path.
 
Top
Sign up to the MyBroadband newsletter
X