JVD,
You need to use the DOS redirect > to the file of your choosing (hence the %comspec%).
code:

break on
GO C:
SHELL '%comspec% /c "C:\DHCPCMD.EXE" 10.198.10.1 enumclients 10.198.0.0 > C:\dhcp.txt'
get $


Don't forget the single quote / double quote thingy if long names used.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.