Run batch file from any location OR from any folder OR from any directory

I have a batch file which is located at say C:\Batches.
I would like to run this batch file from say D:\Works\FolderA.
How to do it... Thanks
3 answers Last reply
More about batch file location folder directory
  1. run it in command prompt
  2. rdxjam said:
    I have a batch file which is located at say C:\Batches.
    I would like to run this batch file from say D:\Works\FolderA.
    How to do it... Thanks



    Append C:\Batches in your environment variable path= and you then can run your batch file from anywhere.
  3. With XP/Pro, .bat files can be stored at:

    C:\WINDOWS\system32\


    I don't know the comparable pathname under Windows 7,
    but I expect that a similar folder exists for all such
    Command Prompt commands.


    MRFS
Ask a new question

Read More

Windows 7