Trial-Practical Guide to Windows PowerShell (version 2nd)

Source: Internet
Author: User

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;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.