代码改变世界

随笔档案-2012年07月

vbs run as administrator win7

2012-07-11 14:39 by 小sa, 467 阅读, 收藏, 编辑
摘要: vba vbs ps bat regex xmlIf WScript.Arguments.Named.Exists("elevated") = False Then'Launch the script again as administratorCreateObject("Shell.Application").ShellExecute "wscript.exe", """" & WScript.ScriptFullName & """ /e 阅读全文