Link to home
Start Free TrialLog in
Avatar of hi4ppl
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
Avatar of NVIT
NVIT
Flag of United States of America image

What OS?
a batch file to run every hour
You can use the Task Scheduler for this.

move them from that current folder
Move to where?
Avatar of hi4ppl
hi4ppl

ASKER

Hi,

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
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.