Eli said:
Does anyone know how I can add a directory context menu item in
Windows Explorer that will launch a .bat file from within the
directory chosen?
That is, right clicking on a selected directory, then choosing "Run My
Batch File" would run the batch file from within the directory.
----- Original Message -----
From: "Eli" <
[email protected]>
Newsgroups: microsoft.public.windowsxp.general
Sent: Friday, July 16, 2004 9:17 PM
Subject: Windows Explorer Shell command
Does anyone know how I can add a directory context menu item in
Windows Explorer that will launch a .bat file from within the
directory chosen?
That is, right clicking on a selected directory, then choosing "Run My
Batch File" would run the batch file from within the directory.
Sure, no problem...
1.) Go to Explorer and Click on the Tools->Folder Options and then click the
tab labled "File Types"
2.) Click on the "[NONE] Folder" then Click on the button that says
"Advanced"
3.) Click on "New"
4.) Under "Action" put a description (e.q. Run my batch file)
5.) Under "Applicataion used to perform action:" type in the following:
cmd.exe /a /k c:\Batchfile.bat "%l"
(replace c:\batchfile.bat with the location and name of your batch file)
6.) Click "OK".. OK... OK to get out of all of the windows
You should now have your right-click context menu doodaddy :-D
HTH Have a good one!