Hello,
I work on Windows 7 Pro 64 bits
I buid a script that make 3 things :
1 + xcopy a file (a other "batch.cmd" file)
2 + DIR
3 + write a log for the actions 1 and 2.
The CMD window where the script is executed and the log say "success" for the 3 actions, and the manual check inside the log show the "batch.cmd" file copied inside the good directory.
Then, everything seems to be OK.
The script is executed by the SYSTEM account.
But the reality is that the destination directory is empty, no "batch.cmd", nothing.
Why ?
--
xcopy c:\src_dir\batch.cmd c:\dest_dir /R /H /Y >> c:\log_dir\log_file.log
DIR /S /A /Q c:\dest_dir >> c:\log_dir\log_file.log
--
Read the log_file.log :
--
1 file copied
c:\dest_dir\batch.cmd
--