Cool Solutions

RUNCMD



By:

October 24, 2007 2:56 pm

Reads: 5562

Comments:0

License:
Free

Download RunCmd

By Bryan Keadle

For our ZENworks NAL objects, when using run Launch scripts, I would normally use “cmd /c” as the “Script Engine” to process the script as a batch file.

Unfortunately, this will throw up a DOS box. Sometimes this is undesired, but I have found no way to have “cmd /c” run minimized by default. RunCmd.exe is a utility that will enable me to not only run this command in a minimized window, but even HIDDEN if I want. By simply replacing the Script Engine value with:

The run script of this NAL object is hidden from view.

There are other uses for this utility besides NAL’s Run Scripts — such as scheduled processes or other administrative scripts.

SYNTAX: RunCmd (program) (ICON|MIN, ZOOM|MAX, HIDDEN) (NOWAIT) (QUIET)
 
     Program:   command line (and parameters) to execute
 ICON or MIN:   run command in a MINIMIZE window
 ZOOM or MAX:   run command in a MAXIMIZED window
      HIDDEN:   run command in a HIDDEN window
      NOWAIT:   run program and exit, don't wait for program to complete
       QUIET:   hide RUNCMD's processing window

By default, RunCmd will run the program in a Normal window, and wait for it to finish before it terminates.

I have a similar utility, RunHide found here, however it serves a different purpose, and each has unique options.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)


Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS