Search This Blog

Thursday, October 13, 2011

Command Prompt Trick

Did you know you can drag & drop files and folders to the command prompt windows (and to any open window in the task bar)?

For example, a trick that I use is this:

Suppose you want to run a DOS command on a particular folder (ex: "C:\Winnt\system32\drivers\etc")

1 - Open the command prompt (Start->Run->cmd.exe) or use the shortcut
2 - Open a Windows Explorer window and go to the parent folder (ex: "C:\System32\Drivers")
3 - On the DOS windows type CD " (leave the quote!)
4 - From the Explorer window, drag the folder (you'll see a small square with a PLUS sign) to the taskbar over the Command Prompt window until it pops up again, then release the mouse over the command prompt.
5 - The full path to the folder is written in the command prompt. Just add the closing quote and away you go! It is faster that writing the whole path if the directory is various levels deep!

No comments:

Post a Comment

How to make a PayPal ACC without the need to verify anything

If you are from North America you have to face prompt of Paypal  that ask you for your SSN (Social Security Number). This is very Easy metho...