Okay... well if you want to continue with that clunky stuff... maybe this will help.

As an example, I know this works...
 Code:
$RC=setoption("NoMacrosInStrings","on")
shell 'cmd /c for /f "tokens=*" %a in ' + "('dir /ad /b') do @echo %a"


And your code... maybe?
 Code:
run '"%COMSPEC%" /C FOR /F "tokens=*" %a in ' + "('DIR /ogn /ad /b " + '"%SYSTEMDRIVE%\Documents and Settings"' 
+ "') do (XCOPY /Q /Y " + '"<SERVER LOCATION>\normal.dotm" "C:\Documents and Settings\%a\Application Data\Microsoft\Templates\")
 > nul 2> nul)'


If you are interested in the kix way... see DirPlus as one direction.
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=82153#Post82153

I'm sure we could get it going pretty quickly.


Edited by Allen (2009-06-24 11:32 PM)
Edit Reason: Broke up long line
_________________________
(... better days ahead)