Windows Explorer Shell command

  • Thread starter Thread starter Eli
  • Start date Start date
E

Eli

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.
 
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top