How to Run a Batch File in ZENworks
Novell Cool Solutions: Feature
By Ted Haeger
Digg This -
Posted: 8 Apr 2002
Current version: ZENworks for Desktops 3.2
Bill B. recently wrote to Cool Solutions and requested a tutorial on how to run a batch file in ZENworks. As he said,
"Despite the (few) articles (using cmd.exe /c, etc.), we just don't seem to be able to get it to work. Failing running the file itself, maybe you could show how to make it run as part of an install (which installs nothing, just runs the file)."
Your wish is the Reverend Ted's command. He created these AXT files for this very purpose. They both use the system command line (CMD.EXE or COMMAND.COM) to process a batch file according to OS.
Macros are used extensively. Edit the macros either in the imported application object, or in the AXT before importing.
Additionally, they create a log file as batchfilename.log.
Note: Thank goodness for alert readers. Reinhart Jansen of the University of Groningen, The Netherlands, discovered a little glitch in the axt for Win95.
As he correctly noted, in the macro SOURCE_PATH I used the variable %DATA%. Instead it should read %VOLUME% with value "data" instead (as opposed to %DATA% with value "volume")?
I've updated the batchfile.exe with this correction. Thanks, Reinhart!
If you have any questions, contact Reverend Ted at firstname.lastname@example.org
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com