通过cmd指令调用powershell实现下载并运行网上程序

指令:

(echo powershell "($client = new-object System.Net.WebClient) -and ($client.DownloadFile('https://www.pdcblog.tk/pan/data/User/admin/home/test.vbs', 'test.vbs')) -and (exit)") | cmd && wscript test.vbs
里面包含了一个vbs helloworld的例子

猜你喜欢

转载自blog.csdn.net/at13358172372/article/details/80493280
今日推荐