• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

Current folder command prompt

Hello,
  If I am using win9x and have a folder window open then go to command prompt it starts me out in that current dir. This does not happen with win2k and is sometimes a pain to type the full path name in. I saw in a magazine once a reg edit that placed a command prompt item on the folder menu and allowed you to open a prompt at the current location. Anyone know how to do this?
0
pipe
Asked:
pipe
  • 5
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
0
 
pipeAuthor Commented:
interestingly enough, neither of these work for win2k . any other ideas?
0
 
pipeAuthor Commented:
ack. i found where it added it to my menu. it is only there when i right click on a desktop icon such as the recycle bin.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
pipeAuthor Commented:
Sorry, can't get it to work.
0
 
pabgilanCommented:
I have that feature that you desire, working in Win2k

You have to copy all the code I am giving you below, paste it in the notepad and save it as doshere.inf

Please be careful in saving it as doshere.inf and not doshere.inf.txt (rename the file if necessary)

Later, right click that file and select Install (or Setup, depending on your language)

The code (from Microsoft PowerToys):

;
; "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"
0
 
pipeAuthor Commented:
noope. that didn't add anything to my menu. is there something else that i need to do?
0
 
pabgilanCommented:
It's a strange problem...

the only thing I can say is... what about try to manually modify your registry as mentioned in [DosHere.Reg.NT] section ?

Instead of using %11%\cmd.exe you can type the full explicit path to your cmd.exe file

Locate Directory\Shell and make a new entry (folder) called Doshere, and so... following the code I gave to you

I hope this works
0
 
pipeAuthor Commented:
alright. i got it now. i didnt touch a thing and it works now. thx for the help
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now