Changeset 35416 for main/trunk


Ignore:
Timestamp:
2021-09-17T16:43:21+12:00 (3 years ago)
Author:
anupama
Message:

Minor changes to clarify scriptname. Previous 2 commits also by me (anupama) accidentally committed under Kathy's kjdon svn username.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/background-launcher.vbs

    r35414 r35416  
    11' This script is based on https://serverfault.com/questions/9038/run-a-bat-file-in-a-scheduled-task-without-a-window/9042
    22' 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]
    44' Going by docx2html.vbs, I think this script must be launched using CScript to make use of stderr
    55Option Explicit
     
    2121args = WScript.Arguments.Count
    2222If 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]
    2424  objStdErr.Write ("ERROR. Usage: CScript //Nologo " & WScript.ScriptName & " <Program-To-Launch-In-Background> [arg1] [arg2] ... [argN]" & vbCrLf)
    2525  WScript.Quit
Note: See TracChangeset for help on using the changeset viewer.