I've used the distribution / lunch script alot rather then do an external bat-script and put in the "Run Options"-selection.
But in many cases i'm beeing forced to use the external method, since the batch code / commands fails in the feature for script within zenworks.

heres an example that works fine when you do it manually, but when you put it under Run before distribution it fails:

SetLocal EnableDelayedExpansion
Set Datacheckfilepath=\\server\vol1
For /f "tokens=1" %%a IN (%Datacheckfilepath%\DataCheck.txt) do (
Set /a DataCheck=%%a
REG ADD HKEY_CURRENT_USER\Software\[Some_regkey] /v DataCheck /t REG_DWORD /d !DataCheck! /f

and here is another:

REG Query HKEY_CLASSES_ROOT\Installer\Products\BC7740FB75748 8743A64F93FEAC81352 /v PackageCode
if "%ErrorLevel%"=="0" (
msiexec /x "\\Server\Vol1\package.msi" /qn


TASKKILL /F /IM Explorer.exe
ping -n 2 localhost > nul
start Explorer.exe

Is there any patch or something to make, "all" commands work together with zenworks? Or is there any limitations?
I know how to get batch working, since ive succeded with more simple batch commands. like:
REG DELETE HKEY_CLASSES_ROOT\Installer\Products\BC7740FB75748 8743A64F93FEAC81352 /f
works just fine.

Can somebody help me? Thanks!