edit 060409: this mod below is no longer needed since BRU now includes a "Bulk Rename Here" context menu item for all files and folders /hoj
Hi,
BRU is great - I use it a lot. Thanks for writing this great program!
Here's a mod i wrote that adds Bulk Rename to the context menu for all files (not only for folders). To do this, you must
1. make a VBScript file (.vbs) and
2. add a context menu item in the registry
Note:
- I've only tested this on Windows XP
- You might need admin rights to run VBScripts
- Some antivirus software may warn/block when running a vbs script. For example, i Norton Antivirus the warning should look something like in these screenshots:
http://images.google.com/images?svnum=1 ... t+detected
Choose allow once until you're sure that you've got the script working as it should. Then you can to authorize/allow the script in the dropdown. After that this specific script will run without warnings. (Other antivirus software should have some settings similar to these).
Ok, onto the how to
1. MAKE THE FILE VBSCRIPT FILE "BULK.VBS"
- Start Notepad with a new (empty) text area
- Copy and paste the code below into Notepad. Then change the path in the code to to the path to your installation of Bulk Rename Utility.
- Code: Select all
Set WshShell = WScript.CreateObject("WScript.Shell")
'--- READ THIS------------------------------------------------------------------------------
' -- change text between " " below to path to your Bulk Rename Utility folder
' -- don't forget the "\" at the end of the path (like after the word Utility below)
' ----------------------------------------------------------------------------------------------------
fPath = "C:\Program\Bulk Rename Utility\"
' -----------------------------------------------------------------------------------------------
whole = fPath & "Bulk Rename Utility.exe"
sName = WScript.Arguments(0)
cutHere = InStrRev(sName, "\")
cutHere = cutHere - 1
newName = Left(sName, cutHere)
WshShell.Run("""" & whole & """" & newName)
set wshshell = nothing
- save the file as "bulk.vbs" in your Bulk Rename Utility folder (same as the path you entered above)
2. ADD CONTEXT MENU ITEM IN THE REGISTRY
- Start Notepad with a new (empty) text area
- Copy and paste the code below into Notepad
- Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Bulk]
@="&Bulk Rename"
[HKEY_CLASSES_ROOT\*\shell\Bulk\command]
@="wscript.exe \"C:\\Program\\Bulk Rename Utility\\bulk.vbs\" \"%1\""
- You may (again) need to change the path "C:\\Program\\Bulk Rename Utility\\" in the last row to the one you entered above. But when you change the path here, make sure that you also use double slashes, "\\", like above.
- save the file as bulk.reg
- double-click bulk.reg to add the changes to the registry