Solved

Current folder command prompt

Posted on 2000-03-26
8
242 Views
Last Modified: 2010-04-13
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
Comment
Question by:pipe
  • 5
  • 2
8 Comments
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 2658885
0
 

Author Comment

by:pipe
ID: 2659283
interestingly enough, neither of these work for win2k . any other ideas?
0
 

Author Comment

by:pipe
ID: 2659450
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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:pipe
ID: 2685109
Sorry, can't get it to work.
0
 
LVL 1

Accepted Solution

by:
pabgilan earned 200 total points
ID: 2709607
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
 

Author Comment

by:pipe
ID: 2709780
noope. that didn't add anything to my menu. is there something else that i need to do?
0
 
LVL 1

Expert Comment

by:pabgilan
ID: 2710956
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
 

Author Comment

by:pipe
ID: 2713051
alright. i got it now. i didnt touch a thing and it works now. thx for the help
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
windows 2000 3 435
windows explorer 21 179
DNS server query - zone verus cache 5 188
How to install Windows 2000 network drivers 4 126
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
ConnectWise and their customers need to ensure critical alerts automatically reach the right person at the right time. MSP superheros efficiently respond to these alerts key is providing automatic, intelligent alerting that generates a complete audi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question