powershell下载文件

windows下载文件到指定位置

powershell (new-object System.Net.WebClient).DownloadFile(‘http://durbiox.west.isilon.com/qa/log/powerload/profiles/dryrun/get-pip.py‘,‘C:\log\get-pip.py‘)

添加路径到系统path,并置顶,需要开新的terminal才生效;

SETX /M path "C:\Users\Administrator\Appdata\python\scripts;%path%"
    # add user‘s paht to sys path
    np = ‘{0};%path%‘.format(u_path)
    client.ignore.run(‘SETX /M path "{0}"‘.format(np))
    results[client.ip]=u_path

powershell下载文件

上一篇:Mac下VMware Fusion虚拟机centos7上网配置


下一篇:shell判断文件存在