Skip to main content


Showing posts from February, 2011

CMD. Eliminate specifying a file name or directory name on the target

All of the batch files we are using in our windows scheduler work except the batch file below.

xcopy C:\Webs\zUpFtp.txt C:\Webs\UpFtp_Products\zProducts_%date:~4,2%-%date:~7,2%-%date:~10%.txt /y


C:\Batch_Files>xcopy C:\Webs\zUpFtp.txt C:\Webs\UpFtp_Products\zProducts_01-11-2
009.txt /y
Does C:\Webs\UpFtp_Products\zProducts_01-11-2009.txt specify a file name
or directory name on the target
(F = file, D = directory)?

Any suggestions at to how we can eliminate a manual [ F ] 

echo f | xcopy source_folder\file.txt destination_folder\file.txt


echo d | xcopy source_folder\file.txt destination_folder\file.txt