标签:
http://www.alexblair.org/user-alexblair-post-1046.html
新建 sudo.js 放到 C:\windows\下面,内容如下:
var command = WScript.Arguments.Item(0); var argument = ""; for (var i = 0; i < WScript.Arguments.Count(); ++i) { argument += WScript.Arguments.Item(i) + " "; } try { var shellapp = new ActiveXObject("Shell.Application"); shellapp.ShellExecute(command, argument, null, "runas", 1); } catch(e) { WScript.Echo("Something wrong: " + e.description + " By http://www.alexblair.org"); }
标签:
原文地址:http://www.cnblogs.com/newsea/p/4759194.html