Originally Posted By: Allen

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)'


The above runs, but for some reason never ends. The command being called executes, and all the files are copied to their correct destinations, but it never goes back to a command prompt after running. It just hangs like it is waiting to do something else. It does not act like this when I run the command outside of KIX.


 Originally Posted By: Allen

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 looked at the link you provided above and did a double-take... I respectfully disagree. I don't think that it is better to add all that extra code to a KIX script, rather than this one line of DOS "Windows Command Line" code.


I'd really like to find out where you learned how to quote the command properly, so that I understand it all better. I can't find enough detail in the manual and I couldn't find a good "advanced quoting instruction" forum post. If you have one, please link it. Thank you.


Edited by bvila9999 (2009-06-25 02:44 PM)