|
But you can not modify or delete them, right? At least I couldn't.
|
|
|
|
|
Ok. can someone tell me how to remove this seeting from folder options?
please.
|
|
|
|
|
Remove HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell
|
|
|
|
|
..or if you have the window open already displaying the folder you can just drag the folder to a dos window..path will be written for you but registry way is always better
|
|
|
|
|
I agree with Tom Trottier - don't hack registry if it is not MUST.
In w2k the send-to shortcut works:
1. Target: c:\winnt\system32\cmd.exe /k doshere.bat
2. Contents of doshere.bat:
@echo off
%~d1
cd %1
Parameter %1 contains the full path of selected directory.
The new features of batch parameters in w2k make a trick.
Regards,
Gennady
|
|
|
|
|
Thanks for the excellent tip. It is one I have always wanted! Typing in "cd c:\documents & settings\paulw\local settings\digireedoo $35834597843\" is never fun!
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
I use several machines from other programmers and having to edit registry entries is boring...
Open a command prompt.
Type cd and space ("cd ", without quotes)
Drag a folder from explorer to command prompt
press enter
PS: It works with files too...
Tested on NT & W2k
|
|
|
|
|
That's smart.
Except when you are on C:\ (the default), and try to go at F:\Foo\Bar...
And it costs a lot of manipulations, compared to a simple right-click.
And as indicated in another thread, MS gives an small .inf file that allows quick install/uninstall, so why don't use it? Except if you don't have it at hand, of course!
But this trick is still good to mention again, it works with other commands as well, like dir, del, nmake, etc.
And it works fine with Win98 too.
Regards.
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
|
|
|
|
|
Or just add a shortcut to COMMAND or CMD to your send-to folder.
Blank out the starting directory.
Real Programmers dont edit registries.
Modeller. APL. Terse.
|
|
|
|
|
That doesn't work! It goes off to some fixed folder everytime
|
|
|
|
|
You do have to add "/K CD" to the Target in the properties of the shortcut (or program) Mine reads
C:\WIN2K\system32\CMD.EXE /k CD
The Send-to appends the directory name.
Works in Windows 2000.
tOM
Modeller. APL. Terse.
|
|
|
|
|
This seems to work only for C drive (or whichever is the root drive). Trying this on my D drive did not work. It's understandable since if you try to change to a folder on a different drive, you'd have to change to that drive first.
|
|
|
|
|
Microsoft released something similar in PowerToys 95. I have used it on 95/98/NT/2000. The following code should be saved in a file with a '.inf' extension then to install right click and choose install:
;
; "Command Prompt Here" PowerToy
;
; Copyright 1996 Microsoft Corporation
;
[version]
signature="$CHICAGO$"
[DosHereInstall]
CopyFiles = DosHere.Files.Inf
AddReg = DosHere.Reg
[DefaultInstall]
CopyFiles = DosHere.Files.Inf
AddReg = DosHere.Reg
[DefaultInstall.ntx86]
CopyFiles = DosHere.Files.Inf
AddReg = DosHere.Reg.NT
[DefaultUnInstall]
DelFiles = DosHere.Files.Inf
DelReg = DosHere.Reg
[DefaultUnInstall.ntx86]
DelFiles = DosHere.Files.Inf
DelReg = DosHere.Reg.NT
[SourceDisksNames]
55="DOS Prompt Here","",1
[SourceDisksFiles]
DOSHERE.INF=55
[DestinationDirs]
DosHere.Files.Inf = 17
[DosHere.Files.Inf]
DOSHERE.INF
[DosHere.Reg]
HKLM,%UDHERE%
HKLM,%UDHERE%,DisplayName,,"%DosHereName%"
HKLM,%UDHERE%,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\DosHere.inf"
HKCR,Directory\Shell\DosHere,,,"%DosHereAccel%"
HKCR,Directory\Shell\DosHere\command,,,"%10%\command.com /k cd ""%1"""
HKCR,Drive\Shell\DosHere,,,"%DosHereAccel%"
HKCR,Drive\Shell\DosHere\command,,,"%10%\command.com /k cd ""%1"""
[DosHere.Reg.NT]
HKLM,%UDHERE%
HKLM,%UDHERE%,DisplayName,,"%DosHereName%"
HKLM,%UDHERE%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\DosHere.inf"
HKCR,Directory\Shell\DosHere,,,"%DosHereAccel%"
HKCR,Directory\Shell\DosHere\command,,,"%11%\cmd.exe /k cd ""%1"""
HKCR,Drive\Shell\DosHere,,,"%DosHereAccel%"
HKCR,Drive\Shell\DosHere\command,,,"%11%\cmd.exe /k cd ""%1"""
[Strings]
DosHereName="Command Prompt Here PowerToy"
DosHereAccel="Command &Prompt Here"
UDHERE="Software\Microsoft\Windows\CurrentVersion\Uninstall\DosHere"
|
|
|
|
|
Yep, this is the one to use. It supports NT and Win9x based machines, uninstallation, opening the command prompt in the selected directory, and it adds the command prompt to the Directory and Drives keys, rather than the Folder key, which means you are given the option of opening a command prompt for virtual folders, such as the Recycle Bin, or the Control Panel. This is still a very useful tip, and one I use many, many times daily.
|
|
|
|
|
...because: maybe WinNT folder is located in D:\WindowsNT, for example. I have a dual boot machine that uses this path, and C:\Windows in for Windows 9x...
|
|
|
|
|
You use system variable "Windir"
Command
"%winnt%\system32\cmd.exe %0"
|
|
|
|
|
In key Command add %0
So, I changed the value to be:
C:\winnt\system32\cmd.exe %0
|
|
|
|
|
This was only setting the prompt to the current directory for me.
So, If I was in E:\projects, and right clicked on MyProject, and choose Command Prompt, it was starting cmd in e:\projects, not e:\projects\myproject.
So, I changed the value to be:
C:\winnt\system32\cmd.exe /K "cd %L"
The /K switch tells cmd to execute the next quoted string, and stay resident afterwards. %L is the full path of the directory (stolen from some of the other registry entries I saw near there).
|
|
|
|
|
BTW I'm on win2k, so the syntax might have changed since 4.0..
Ryan
|
|
|
|
|
|
You might consider using the environment variable and making your entry: %SystemRoot%\system32\cmd /K "cd %L" More dynamic for those of us who install on a different drive.
|
|
|
|
|
Changing %SystemRoot%\System32\..... Does not work in Win2K. However c:\winnt\System32\... Works!!!
|
|
|
|
|
%windir%\System32\cmd.exe will work in this case
Muneeb-ur-Rehman Baig.
A thing of beauty is the joy forever.
|
|
|
|
|