This works for me.... of course you need admin rights to access the C$ share. Note also to write an @ to the file you need to double it.

Gregg

Break on
$rc=SetOption('NoVarsInStrings','on')
$pc="10.198.10.4"
$AllUsersDesktop ="\\"+$pc+"\c$\Documents and Settings\All Users\Desktop"
$ = Open(1,$AllUsersDesktop + "\Test.bat",5)
$ = WriteLine(1,"@@Echo Testing" + @CRLF)
CLOSE(1)