CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Ben Reichelt's Weblog


Command prompt shortcut



Comments

John Wood said:

Cool... i always knew it was possible but it's nice to have step-by-steps to save me having to think about it! I've always copied and pasted the address bar content into a command prompt to do the same thing... quite sad really :)
# May 11, 2005 7:46 PM

Sam said:

If you're feeling a little lazier there's also an XP PowerToy called "Command Prompt Here" that does the same thing I think.
# May 11, 2005 8:14 PM

breichelt said:

John, I always did that too, thats what I got sick of doing, its the little things, ya know :)
# May 11, 2005 8:32 PM

John Wood said:

One thing I did think to automate was the reverse -- getting from the prompt to an explorer window with folders showing.

explorer .,/e

Of course you probably knew that already but I thought I'd mention it anyway coz I use it all the time!
# May 11, 2005 9:33 PM

breichelt said:

Actually, I hadn't thought of that one, but I'll keep it in mind
# May 11, 2005 9:47 PM

John Papa said:

Ben & John ... Very cool stuff. Both are very simple and convenient. Never really thought about "how", now I don't have to. Thanks!
# May 11, 2005 9:58 PM

Kjell-Åke Andersson said:

The 'Open Command Window Here'-powertoy has been available since Windows 95 PowerToys.
Since this has been available since Windows 95 I am quite amazed that MS has not added it by default to Windows!

Here is the link to get it: http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

You should also check out ClearType Tuner and Tweak UI!
# May 12, 2005 12:37 AM

adam said:

You should really instll the interesting bits of both windows 95 power toys AND XP power toys.

I use "command here", "file name to clipboard" and "send to any folder" almost every day.

I did remove alot of the default win95 email "send to" items

And it should be LAW to have note pad (well notepad2 really) in your send to.

Finaly I have found that renaming the send to items with a numeric prefix allows for a neater menu.
1. Notepad
2. Clipboard as Name
3. Any Folder...
4. Run Command
5. Clipboard as Contents
# May 12, 2005 5:30 AM

Michael Ames said:

I created a .reg file with these settings to make it a no-brainer to install. I can't post an attachment here, but you can save the following to a .reg file, double-click it, and you're done:


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt\command]
@="cmd.exe /k \"cd %1%\""





-Michael
# May 12, 2005 6:08 AM

Raymond Lewallen said:

Awesome. I exported that key entry and now don't have to remember where it goes, I can just merge the .reg file.
# May 12, 2005 6:21 AM

breichelt said:

I'm definitely going to look into the power tools, it seems like they have a lot of great little time savers, thanks for all the suggestions!

I was going to create a .reg file and make it available for download from the post, but I couldn't get my ftp working, so I had to go without it :)
# May 12, 2005 6:52 AM

ml said:

One issue I found was directory paths with longer than 8 letters show up with the ~1, in place of the extra letters (as in C:\DOCUME~1\ADMINI~1\Cookies). This was an old windows problem (when folders could only be 8 characters long). If you manually navigate to the path today, you get the full path name...
# January 20, 2006 10:51 AM

ml said:

Try:
cmd.exe /k "cd %L"
# January 20, 2006 11:32 AM
Check out Devlicio.us!

Our Sponsors

Free Tech Publications