1.

Solve : add a .bat file to right click contents menu?

Answer»

add a .bat file to  right click  contents menu
=======================================
hi
is there a WAY to  add a .bat file to  right click  contents menu?
if its so  give me the exact  string for .reg file
thanksNot sure what you mean. What Right Click menu? What would its purpose be?I believe he means on the "New" Item under the File menu, he wants to add a Create new Batch File:


VIEW this:
http://windowsxp.mvps.org/shellnewadd.htm

[attachment deleted by admin]Intriguing....I never thought of that...

TweakUI, the Windows XP Powertoy, can do it.
http://www.microsoft.com/windowsxp/Downloads/powertoys/Xppowertoys.mspx
http://download.microsoft.com/download/f/c/a/fca6767b-9ed9-45a6-b352-839afb2a2679/TweakUiPowertoySetup.exe


If you're looking for a way to do it via the Registry, don't. It's not worth it.Thought about bringing that up, and yea...registry is not worth it for such a simple operation.thanks guys
links above were really  helpfulyou can USE this anyway:

Code: [Select]Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.bat\ShellNew]
"Data"="echo off"
"ItemName"="%SystemRoot%\\system32\\notepad.exe,-470"
i have it like this and it works
Quote

you can use this anyway:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.bat\ShellNew]
"Data"="echo off"
"ItemName"="%SystemRoot%\\system32\\notepad.exe,-470"

i have it like this and it works

sorry devcom
i  copied your CODES in  a reg  key   and execute it but i dont have  it in  my  right click why?
should i  restart my  win xp?

i  dont want  .bat in  my  new
i want to  add one program.bat  in  my  right clickok, so you need to look for app ShellExView, this should help you

Code: [Select]http://www.nirsoft.net/utils/shexview.htmldo you mean to add FILES to a right click menu like this?

yes BatchFileBasics
i  need it  to  be avtive both  on  folders and files
thanks if you  van  make a script i will  be greatfullwell this is for the "all' files but not folders:
and you save it in notepad as "anything.REG"
Code: [Select]Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Name of command\command]
="\"c:\\path of file\\file.bat\" \"%1\""

replace "Name of command" with what you want the right click descipt to be.
but leave alone the "command" at the end

Code: [Select]="\"c:\\path of file\\file.bat\" \"%1\""
adds the key to the registry.
your normal file would be c:\path of file\file.bat
but all the \ mean to not count as a new command\line

regularly it is :
Code: [Select]"c:\path of file\file.bat\" "%1"
but you need the slashes so:
Code: [Select]"\"c:\\path of file\\file.bat\" \"%1\"
it worked thanks my  dear BatchFileBasics
i  have  my.bat file in  my right click options now
i am  satisfied now
thank you  againyou are all welcome to whom gave me a thanked up.


and mioo_sara, welcome to the forums I know this is an older post, but i tired and have one issue. When i right click a blank area, there is no "Create New BAT" like registry specified. It simply added an option for when i right click an file. Has anyone got this to work on the right click menu or the "File>new" menu?

Here is my REG file:
Code: [Select]Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Create New BAT\command]
="\"C:\\Documents and Settings\\mhofmann\\My Documents\\Test\\file.bat\" \"%1\""


Thanks for the help!


Discussion

No Comment Found