564 | Chapter 9: Scripting and Automation
4. Double-click the (default) value in the new cmd key, and type the following
for its contents:
Open Command &Prompt Here
5. Next, create a new key here by going to Edit ??? New ??? Key, and type
command for the name of the new key.
6. Double-click the (default) value in the new command key, and type the
following for its contents:
cmd.exe /k "cd %L && ver"
This line launches the cmd.exe application, and then, using the /k parameter,
instructs it to carry out these two commands:
cd %1
ver
which change the working directory to the folder that has been rightclicked,
and then displays the Windows version, respectively.
7. Close the Registry Editor when you??™re done; the change will take effect
immediately. Just right-click any folder and select Open Command
Prompt Here to open a Command Prompt window at the selected
folder.
A simpler (and somewhat slicker) solution is to use Creative Element Power
Tools (http://www.creativelement.com/powertools/). Once you turn on the
Open a Command Prompt in any folder option, you can right-click any
folder icon or the background of any open folder window (or the desktop),
and select Command Prompt to open a new Command Prompt window
rooted at the selected folder. The tool can also be configured to open the
Windows PowerShell (covered next), or any third-party Command Prompt
application.
Windows PowerShell
Windows PowerShell, known prior to its official release as the Monad* Shell
(MSH), is an advanced replacement for the good ol??™ Command Prompt.
Pages:
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786