标签: powershell vbscript
嗨,有人请帮我从vbscript作为管理员运行PowerShell
MyPath =“c:\ temp \ folder1” 昏暗的objShell 设置objShell = CreateObject(“Wscript.Shell”) objShell.run(“powershell.exe -noexit -file C:\ temp \ power.ps1”& MyPath)
C:\ temp \ psfile.exe $ args [0] -c
答案 0 :(得分:0)
在VBScript中Set用于对象;所以改变
Set
set input ="C:\temp\folder1\"
到
input = "C:\temp\folder1\"