Trial-Practical Guide to Windows PowerShell (version 2nd)
Seeing the Practical Guide to Windows PowerShell (version 2nd), I think of my girlfriend's first birthday gift. What is it?
The name of a book is Windows 2000 Script Programming;
Time flies, and ten years have passed;
Why did you choose such a book as a birthday gift?
This is a secret. You want to go!
Why does the Practical Guide to Windows PowerShell (version 2nd) Remind me of Windows 2000 Script Programming?
Take a look at the following example:
var ws = WScript.CreateObject("WScript.Shell");var scut = ws.CreateShortcut("testcs_dn.URL");scut.TargetPath = "http://blog.csdn.net/testcs_dn";scut.Save();
Save the code as "URL_Link.js", modify the file attributes, and open the file in the following way: Microsoft Windows Based Script Host
Then double-click the file to run it. A shortcut is generated in the current directory:
PowerShell, WScript. shell, with a Shell, I think PowerShell can be implemented through WScript. shell, CMD, and BAT can basically be implemented. However, the PowerShell implementation method is more convenient, fast, and elegant, and is closer to the usage habits of Linux users!
Suitable for readers
First knowledge of PowerShell
My system is Windows 7x64, which does not require installation,
Click the Start menu and enter PowerShell in the search box, for example:
Select Windows PowerShell to open the PowerShell window. Enter ls or pwd to try:
In the just-opened PowerShell window, enter ISE and press enter to open the integrated script environment (ise.
How to view the current version. For example, if you enter $ psv and press the Tab key, the name is automatically completed. This is very practical. Press F5 to see the following output;
Summary as long as you have used CMD and have a little programming basics, PowerShell is very easy to learn;