2015-03-03 18:30:41 +01:00
|
|
|
/* global WScript:false */
|
|
|
|
|
2015-02-11 20:44:05 +01:00
|
|
|
var oExec;
|
2015-03-03 18:30:41 +01:00
|
|
|
|
|
|
|
// exit-code is not returned even if an error is thrown.
|
|
|
|
try {
|
|
|
|
WScript.StdOut.Write(WScript.CreateObject('ScriptPW.Password').GetPassword());
|
|
|
|
} catch (e) {
|
|
|
|
WScript.StdErr.Write(e.description);
|
|
|
|
WScript.Quit(1);
|
|
|
|
}
|
|
|
|
|
2015-02-11 20:44:05 +01:00
|
|
|
oExec = WScript.CreateObject('WScript.Shell').Exec('cmd /c echo; >CON');
|
|
|
|
while (oExec.Status === 0) { WScript.Sleep(100); }
|