remove surpluss debug, fix handling of None Password file, and fix invisible windows extraction.

added option for windows extraction debugging. Fixes #1399 #759
This commit is contained in:
clinton-hall 2018-12-06 19:24:04 +13:00
commit de869391b1
4 changed files with 15 additions and 12 deletions

View file

@ -1,15 +1,15 @@
set args = WScript.Arguments
num = args.Count
if num = 0 then
WScript.Echo "Usage: [CScript | WScript] invis.vbs aScript.bat <some script arguments>"
if num < 2 then
WScript.Echo "Usage: [CScript | WScript] invis.vbs aScript.bat <visible or invisible 1/0> <some script arguments>"
WScript.Quit 1
end if
sargs = ""
if num > 1 then
if num > 2 then
sargs = " "
for k = 1 to num - 1
for k = 2 to num - 1
anArg = args.Item(k)
sargs = sargs & anArg & " "
next
@ -17,5 +17,5 @@ end if
Set WshShell = WScript.CreateObject("WScript.Shell")
returnValue = WshShell.Run("""" & WScript.Arguments(0) & """" & sargs, 1, True)
returnValue = WshShell.Run("""" & WScript.Arguments(1) & """" & sargs, WScript.Arguments(0), True)
WScript.Quit(returnValue)