How to craete batch file

Logik

Member
Jan 17, 2012
32
4
Hi All,

Kindly assist on how i can create batch file which will copy file from one location to another at a certain time. The files are always change everyday(dates)

Asanten
 
Will assume that you talking about windows environment.
The command to read on is "AT" which will be the scheduler for the tasks that will be contained in a batch file.
What you will have in the batch file is bog standard "move" or "copy" command to move or copy the file from/to destination.

Read on AT @ at

Syntax for copy/move is as follows

Copy \\wServer1\c$\FTP\Payment\Prod\FTPServer\InBound\K1UKAC.txt C:\BATCH\SYS\BACKUPS\K1UKAC_%DT%.txt


You might want to use a "y" at the end of the above copy statement incases where you moving/copying multiple files.
 

Similar Discussions

Back
Top Bottom