Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. Command Prompt and Automation > Windows PowerShell - Pg. 637

This line launches the cmd.exe application, and then, using the /k param- eter, instructs it to carry out these two commands: cd %1 ver which change the working directory to the folder that has been right- clicked, 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. 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 win- dow (or the desktop), and select Command Prompt to open a new Command Prompt window rooted at the selected folder. The tool supports Administrator mode (for UAC) and 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. Al- though it uses many familiar DOS commands (sort of), it introduces some Unix-like functionality to the Windows platform while borrowing some of the Windows-aware features found in WSH scripts, like printing, security, and process control. Windows PowerShell 2.0 is installed along with Windows 7; in earlier versions of Windows, you had to download Power- Shell separately from http://www.microsoft.com/powershell/. "Monad" literally means "one" or "single," but was likely chosen by Microsoft as the codename for PowerShell to evoke monadism, Gottfried Leibniz's philosophy that the physical and metaphysical universe exists because of a divine "harmony" between fundamental elements he called monads. To say the comparison is presumptuous on Microsoft's part is an understatement, but a noble goal nonetheless. Command Prompt Windows PowerShell | 637