摘要:
#IE代理设置函数#$proxy_enable (0:禁用IE代理 1:启用IE代理)#$proxy_server (192.168.1.111:8080)Function F_Set_Proxy([string]$proxy_enable,[string]$proxy_server) { #是否启 阅读全文
随笔分类 - powershell
使用powershell通过配置文件config调用wcf(含用户名密码认证)
2016-03-24 17:15 by whitecf, 736 阅读, 收藏,
摘要:
1.环境设定 工作目录: D:\workspace\ (目录可随意) 需要的应用程序: SvcUtil.exe(解析wcf的url生成cs和config文件的工具)来源:有vs.net的PC的C盘中搜索出来,复制到D:\workspace\中。 csc.exe(通过cs文件生成dll的工具)来源:C 阅读全文
powershell中使用New-WebServiceProxy调用webapi(webservice使用可,wcf使用不可)
2016-02-19 14:10 by whitecf, 938 阅读, 收藏,
摘要:
无认证的webapi调用 $uri = "http://www.holidaywebservice.com/HolidayService_v2/HolidayService2.asmx"$proxy = New-WebServiceProxy -Uri $url$proxy.GetCountries 阅读全文
powershell 用7-zip解压带密码的zip文件
2016-01-21 17:47 by whitecf, 2215 阅读, 收藏,
摘要:
#路径$7zip_path = "C:\Program Files\7-Zip"#参数列表$Arg = "x -p$zip_password_api $zipFile -o" + $foldername + " -y"#7-Zip命令$7zip = $7zip_path + "\7z.exe"#解压 阅读全文
浙公网安备 33010602011771号