Command Prompt Here
Here's a Windows Tip called "Command Prompt Here."
I found it at
http://www.pbdr.com/ostips/companyw.htm
Here is the tip in its original form.
This tip was submitted by Leon Venediktou.
In order to access the command prompt or the console as now days is known, at the best you can double click on a shortcut that you might have on your desktop. Then comes the good old:
cd apps
cd progs etc...
How about a right click option on your explorer with a To Console... option that it opens a console window ready at the path you selected from the explorer?
Here is how:
open explorer anywhere
View -> Options... -> File types (tab)
Find and select the "Folder" item in the "registered file types" box
click on "Edit"
(or "Advanced") and you get the "Edit File Type" window
click on "New" and you get "New Action" window
Give it any name you like as long as it makes sense. I named it "To Console..."
Browse to your windows and system folder and select the Cmd.exe this should be the console program... Make sure on the Application used to perform action you select the C:\WINNT\system32\Cmd.exe (or what ever is you windows system folder)
Add the following: /k cd "%1"
for Win NT it should look like:
C:\WINNT\system32\Cmd.exe /k cd "%1"
I created the above entry with the name "Command Prompt Here".
Lets try another one called "File List Here"
In this example we will substitute the console command (cmd.exe) with a batch file (.bat) that will create a text file in the current folder called <current date>filelist.txt containing a list of files in the current folder. The prompts in Explorer have been adapted for Windows XP
First open Notepad
Type the following lines
cd "%1"
dir *.* /b > %date%filelist.txt
Save the file to "c:\apps\filelist.bat"
The file name and path I use are just an example. If you have come this far then you are smart enough to know you can create whatever file name you want and place it in whatever folder you want.
This is how you add it to Windows Explorer:
open explorer anywhere
Tools -> Folder Options... -> File types (tab)
Find and select the "Folder" item in the "registered file types" box
click on "Advanced" and you get the "Edit File Type" window
click on "New" and you get "New Action" window
In the Action field type "File List Here..."
Browse to "c:\apps\filelist.bat" Make sure on the In the Application used to perform action field browse to the .bat file or type the full path and file name "c:\apps\filelist.bat"
Then just OK, OK, OK, your way out of the dialog boxes.
Back to the Tips page.