Rob van der Woude's Scripting Pages

Help text for RunNHide.cs

(view help text of RunNHide.cs as plain text)

RunNHide,  Version 1.01
Start a console program or script in a hidden window

Usage:  RUNNHIDE    command    [ arguments ]

Where:  command         is the console program or script to be run
        arguments       is/are the optional command line
                        argument(s) for command

Notes:  "command" will be started in a separate process, so catching
        errors or the command's errorlevel, or changing environment
        variables is not possible; run "command" in a "wrapper" batch
        file to add your own cusom error handling.

        Redirection symbols and parentheses in the command line
        arguments must be escaped with carets, e.g.
        RUNNHIDE DIR ^> dir.log
        Better still: use a "wrapper" batch file with the unescaped code.

        If "command" is a file with a registered file association, it will be
        started with the standard command interpreter:
        CMD.EXE /C START /B /MIN "command" [ arguments ]
        This will in turn start the file in its associated program; however,
        there is no guarantee that the associated program will run hidden.

        If "command" cannot be found in the PATH, not even after
        appending extension found in PATHEXT, RunNHide.exe will
        try and start it using the standard command interpreter,
        like it does for registered file types.

        RunNHide.exe will return errorlevel 1 in case of detected errors,
        or 2 if the command file could not be found, or 0 otherwise.

Written by Rob van der Woude
http://www.robvanderwoude.com

page last uploaded: 2017-03-25, 21:31