hi4ppl
asked on
I need a batch that move and FTP files on hourly bases
Hi,
I have two types of files that names like :
count_of_S_20141110.txt
count_of_S_20141111.txt
and other
count_of_g_20141110.txt
count_of_g_20141111.txt
what i'm looking for is a batch file to run every hour and:
1- FTP them to some remote location
2- move them from that current folder
thanks for the help
I have two types of files that names like :
count_of_S_20141110.txt
count_of_S_20141111.txt
and other
count_of_g_20141110.txt
count_of_g_20141111.txt
what i'm looking for is a batch file to run every hour and:
1- FTP them to some remote location
2- move them from that current folder
thanks for the help
ASKER
Hi,
current folder :
D:/data/
move to
D:/backup/s ** for S files
D:/backup/g ** for G files
regards
current folder :
D:/data/
move to
D:/backup/s ** for S files
D:/backup/g ** for G files
regards
so is this ftp as in the question, or just a mapped drive?
if it is a mapped drive then a unc path \\server\share would be best as the drive mapping wouldnt be available to a scheduled task.
Is there any remaining involved or just look for those files and move them to the other location?
is there any chance they could still be being written to when the script runs? If there is would suggest the other process could flag completion or only rename the file when it has finished.
If you did this process manually how do you do it?
Steve
if it is a mapped drive then a unc path \\server\share would be best as the drive mapping wouldnt be available to a scheduled task.
Is there any remaining involved or just look for those files and move them to the other location?
is there any chance they could still be being written to when the script runs? If there is would suggest the other process could flag completion or only rename the file when it has finished.
If you did this process manually how do you do it?
Steve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is an extension called ftpuse, which works like net use but for FTP, and can simplify access if you need to do more than just push files into FTP. Checking for existence, for example.
@Qlemo - that sounds potentially useful, put in the toolbox :-)
hi4ppl... Thanks for the update. I'm glad we could help.
You can use the Task Scheduler for this.
Move to where?