Explorer Contextmenu entry should appear if multiple files a

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Explorer Contextmenu entry should appear if multiple files a

Postby masu » Sat Nov 05, 2005 11:14 am

Explorer Contextmenu entry should appear if multiple files are marked

currently it just appear, if you select a directory
masu
 
Posts: 23
Joined: Thu Sep 01, 2005 7:55 pm

Re: Explorer Contextmenu entry should appear if multiple fil

Postby ZoNi » Thu Jan 05, 2006 11:27 pm

masu wrote:Explorer Contextmenu entry should appear if multiple files are marked

I agree! It is little stupid to have always to go UP one level, to be able to rename multiple files...

Jim, what you think about this?

BTW, all the best to you and all other member of this forum in New 2006! :D
ZoNi
 
Posts: 13
Joined: Thu Jan 05, 2006 11:19 pm

Postby Admin » Fri Jan 06, 2006 12:25 am

It' quite tricky to include this fucntionality unfortunately (though I'm open to suggestions!). My understanding is that a separate DLL is required for this logic.


Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby Stefan » Fri Jan 06, 2006 2:08 pm

If BRU can handle command line args like
BRU.exe   file.one   file.two   file.thr   file.fou

than an registry entry could help.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\BRU\Command]
@="C:\\Program files\\BRU\\BRU.exe \"%1\""




This reg item should the BRU.exe wrote on user command to set the correct path.

BTW, BRU.exe should also add
[HKEY_CLASSES_ROOT\Directory\shell\Bulk Rename\command]
and
[HKEY_CLASSES_ROOT\bru_auto_file\shell]
context menu reg item
on user command, not only with install tool.


HTH
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Postby Admin » Fri Jan 06, 2006 2:14 pm

BRU can already handle command-line arguments, but only a directory name or a .BRU filename.

Installation/Removal of the context-menu stuff will ONLY take place when Version 3 of Tarma Installer (http://www.tarma.com) is released. It will not happen before then I'm afraid.

Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby masu » Sun Jan 08, 2006 12:54 pm

Can you do this with NSIS?

http://nsis.sourceforge.net/Main_Page
masu
 
Posts: 23
Joined: Thu Sep 01, 2005 7:55 pm

Postby Admin » Sun Jan 08, 2006 12:59 pm

Probably, but I'd prefer to wait for the next Tarma release, as I like Tarma.
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby hoj » Sat Feb 18, 2006 5:28 pm

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
Last edited by hoj on Sun Apr 09, 2006 9:01 pm, edited 1 time in total.
hoj
 

Postby Admin » Sat Mar 18, 2006 6:46 pm

This is now available in the latest beta (on the website).



Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby hoj » Sun Apr 09, 2006 8:59 pm

That's great! :)
No need for the mod anymore then. I'll edit in a note about it in my post above too.
hoj
 


Return to Suggestions