Sign in with
Sign up | Sign in
Your question

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

Tags:
Last response: in Windows 7
Share
August 18, 2011 4:57:31 AM

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
a b $ Windows 7
August 18, 2011 10:50:20 AM

run it in command prompt
m
0
l
August 18, 2011 11:42:03 AM

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.
m
0
l
August 18, 2011 5:52:32 PM

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
m
0
l
!