Computer Hope
Microsoft => Microsoft DOS => Topic started by: mioo_sara on May 27, 2009, 05:20:32 AM
-
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
thanks
-
Not 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 (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 helpful
-
you can use this anyway:
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 ;)
-
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 click
-
ok, so you need to look for app ShellExView, this should help you ;)
http://www.nirsoft.net/utils/shexview.html
-
do you mean to add files to a right click menu like this?
(http://i41.tinypic.com/dc3dvl.jpg)
-
yes BatchFileBasics
i need it to be avtive both on folders and files
thanks if you van make a script i will be greatfull
-
well this is for the "all' files but not folders:
and you save it in notepad as "anything.REG"
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
@="\"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 :
"c:\path of file\file.bat\" "%1"
but you need the slashes so:
"\"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 again
-
you are all welcome to whom gave me a thanked up.
:P
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:
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!
-
well you are not the only one curious about it, i found the key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew
but i have no idea how or what to edit to create a new batch file or anything