- Timestamp:
- 2021-09-17T16:43:21+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/background-launcher.vbs
r35414 r35416 1 1 ' This script is based on https://serverfault.com/questions/9038/run-a-bat-file-in-a-scheduled-task-without-a-window/9042 2 2 ' to run a given command in the background. 3 ' Usage: CScript //Nologo scriptname.vbs <Program-To-Launch-In-Background> [arg1] [arg2] ... [argN]3 ' Usage: CScript //Nologo background-launcher.vbs <Program-To-Launch-In-Background> [arg1] [arg2] ... [argN] 4 4 ' Going by docx2html.vbs, I think this script must be launched using CScript to make use of stderr 5 5 Option Explicit … … 21 21 args = WScript.Arguments.Count 22 22 If args < 1 then 23 'WScript.Echo Usage: CScript //Nologo scriptname.vbs <Program-To-Launch-In-Background> [arg1] [arg2] ... [argN]23 'WScript.Echo Usage: CScript //Nologo background-launcher.vbs <Program-To-Launch-In-Background> [arg1] [arg2] ... [argN] 24 24 objStdErr.Write ("ERROR. Usage: CScript //Nologo " & WScript.ScriptName & " <Program-To-Launch-In-Background> [arg1] [arg2] ... [argN]" & vbCrLf) 25 25 WScript.Quit
Note:
See TracChangeset
for help on using the changeset viewer.