Re: Windows Explorer Shell command

From: John Vogel (john_at_thecompuwizard.com)
Date: 07/17/04


Date: Fri, 16 Jul 2004 21:47:45 -0400


"Eli" <nobody@anywhere.com> wrote in message
news:0qqgf0dgld9r33j0b7k54h4chg1p7kd4qi@4ax.com...
> 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" <nobody@anywhere.com>
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!

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----