mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
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:
parent
e2accb9ec2
commit
de869391b1
4 changed files with 15 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue