Ok, I searched and found this advice for using DOS prompt commands in a script Code:
Start with a two line script:
code:
--------------------------------------------------------------------------------
SHELL '%COMPSPEC% /c \\NEO\SysUpdates\OSUpdates\Q318203_MSXML30_x86_en.exe /q:a /c:"dahotfix.exe /q /n"'? "Error code returned: @error"
--------------------------------------------------------------------------------
and execute it from a DOS window. Shorten it until you see some result.
Or would you need another set of quotes for %Comspec%?
code:
--------------------------------------------------------------------------------
SHELL "%COMPSPEC% /c '\\NEO\SysUpdates\OSUpdates\Q318203_MSXML30_x86_en.exe /q:a /c:"dahotfix.exe /q /n"'"
My question is how do I fomat it, while using a variable from the script? Something like this is what I have
Code:
Shell '%COMPSEC% /c \\<server>\<share>\showmbrs <domain>\'+$group+' >> \\<machine>\<share>\'+$group+'.txt'
?'errors: '+@ERROR+@SERROR
The error that it returns is "2. The system cannot find the file specified." The script is reading from a flat file, the names of domain groups, and then using it to enumerate the users for that group, and piping it out to a file with the name of the group as the file name. Perhaps someone has done something similar? Any help would be greatly appreciated.