context-menu tweaks

Locked
4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

context-menu tweaks

Post by 4days »

REGEDIT4

; adds a command prompt to the context menu.
[HKEY_CLASSES_ROOT\Directory\Shell\DosPrompt]
@="Prompt"
[HKEY_CLASSES_ROOT\Directory\Shell\DosPrompt\Command]
@="Cmd /k CD \"%L\" "

; adds a 'copy to folder' option to the context menu.
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"

;adds an 'Explore as root' option, to explore with the current folder as root.
[HKEY_CLASSES_ROOT\Directory\Shell\RootExplore]
@="Explore as root"
[HKEY_CLASSES_ROOT\Directory\Shell\RootExplore\Command]
@="explorer.exe /e ,/root,\"%L\" "
ilumos
Posts: 226
Joined: Wed Feb 09, 2005 10:46 am

Post by ilumos »

How do you add this stuff to the registry?

I pasted it all into a .reg file and it had none of it. What am I doing wrong?
4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

did you save a text file as '.reg'? think it needs to be unicode to work, so one way to do it would be to export some key or other to a file on your desktop - then edit that file, delete everything and paste the new contents - then save/merge.

it's from a windows2000 box btw, results may vary on other OSs.
AmIdYfReAk
Posts: 6926
Joined: Thu Feb 10, 2000 8:00 am

Post by AmIdYfReAk »

you need to make sure when you paste it into notepad, that you put "Tweak.reg" in the Save As field, or else it will save as tweak.reg.txt
Bdw3
Posts: 3348
Joined: Sun Mar 12, 2000 8:00 am

Post by Bdw3 »

Fairly usefull stuff too.

I forsee myself using the [copy to folder] much. :icon14:
dzjepp
Posts: 12839
Joined: Wed Mar 28, 2001 8:00 am

Post by dzjepp »

You need to add:

Windows Registry Editor Version 5.00

As the first line otherwise Windooze won't allow you to use it.

BTW, if anyone is interested in a nice full page registry tweak file formatted with instructions and info on each tweak I'll paste it here. Don't remember where I got it otherwise I would send you to the page itself.

Works quite good, I've got a ton of them enabled.

http://s88378813.onlinehome.us/files/mi ... TWEAKS.rar

EDIT: Don't forget: DO NOT merge/apply the file right away. Look through it (edit with notepad) and comment (with a ; ) anything out that you don't want to enable.
Bdw3
Posts: 3348
Joined: Sun Mar 12, 2000 8:00 am

Post by Bdw3 »

er, that line does noting... as formatted above in a text document with the extention changed to .reg will work fine.
4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

just had to spend about 15 minutes googling/remembering enough DOS to do this, so in the unlikely event that it's useful to anyone else:

Code: Select all

@ECHO OFF
SET buffer=%1
:SWAPSLASH
FOR /f "tokens=1* delims=\" %%a IN ('ECHO %buffer%') DO (
  IF NOT [%%b]==[] SET buffer=%%a/%%b
  IF NOT [%%b]==[] GOTO SWAPSLASH
 )
)
ECHO %1 = %buffer%
should replace all the "\"s in a string with "/". handy if you're sending stuff over to a *nix box.
Underpants?
Posts: 4755
Joined: Mon Oct 22, 2001 7:00 am

Post by Underpants? »

slicker than a cat's ass, dj dizzy dipp
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post by FragaGeddon »

cool.
[img]http://www.fragageddon.com/images/albums/userpics/10001/FragaGeddon.png[/img]
User avatar
Scourge
Posts: 15559
Joined: Mon Mar 25, 2002 8:00 am

Post by Scourge »

Here's a reg hack I've been using. Has send to, copy to, and move to

SendTo.zip
Locked