rem fileName uac.bat rem usage uac.bat [command] rem [command] : 任意のexeファイル名 powershell start-process -verb runas %1
// fileName uac.js // usage uac.js [command] // [command] : 任意のexeファイル名 var command = WScript.Arguments(0); var shell = new ActiveXObject("Shell.Application"); shell.ShellExecute(command,"","uac","runas",1);