zoukankan      html  css  js  c++  java
  • PowerShell 常用命令

    下载文件

    http://powershell.com/cs/blogs/tips/archive/2012/10/11/downloading-files-from-internet.aspx

    PowerShell v3 comes with a hugely useful new cmdlet called Invoke-WebRequest. You can use it to interact with websites which also includes downloading files.

    This will download the SysInternals suite of tools to your computer:

    $Source = 'http://download.sysinternals.com/files/SysinternalsSuite.zip'
    $Destination = "$env:tempsysinternalssuite.zip"
    Invoke-WebRequest -uri $Source -OutFile $Destination
    Unblock-File $Destination
    
    

    Since downloaded files are blocked by Windows, PowerShell v3 comes with yet another new cmdlet: Unblock-File removes the block. Now you're ready to unzip the file.

    If your Internet connection requires proxy settings or authentication, take a look at the parameters supported by Invoke-WebRequest.

  • 相关阅读:
    最大流问题的几种经典解法综述
    有上下界的网络流
    hiho一下
    poj 1018
    状压dp
    hdu 1043
    Poj1015
    7.14
    sgu 128
    (zhuan)
  • 原文地址:https://www.cnblogs.com/swlin/p/4751954.html
Copyright © 2011-2022 走看看