FTP login move every 5mins

G

Guest

Hi all,

Im looking for a command I can enter to a bat file (if possible) thats will
sit on an FTP site and every 5min tranfer a file from FTP to an another drive
on the newtwork that is mapped to the ftp site?

Not sure if this is possible

Any help wouldbe great.

Cheers
Patrick
 
B

billious

Flashing CAPS LOCK said:
Hi all,

Im looking for a command I can enter to a bat file (if possible) thats
will
sit on an FTP site and every 5min tranfer a file from FTP to an another
drive
on the newtwork that is mapped to the ftp site?

Not sure if this is possible

Any help wouldbe great.

Cheers
Patrick

How about: (untested)

if exist stopftp.flg del stopftp.flg
:wait5m
set yNL=60
:wait5s
ping -n 6 127.0.0.1 >nul
if exist stopftp.flg del stopftp.flg
set /a yNL=%yNL%-1
if %yNL% GTR 0 goto wait5s
:: Do the FTP transfer here...
goto wait5m

The playing with "stopftp.flg" allows you to create a file "stopftp.flg" to
terminate the batch cleanly.
Using PING N delays for (N-1) seconds
Consequenly, the inner-loop executes each 5 secs, and the Number of Loops
required is 60

HTH

....Bill
 
G

Guest

How about: (untested)
if exist stopftp.flg del stopftp.flg
:wait5m
set yNL=60
:wait5s
ping -n 6 127.0.0.1 >nul
if exist stopftp.flg del stopftp.flg
set /a yNL=%yNL%-1
if %yNL% GTR 0 goto wait5s
:: Do the FTP transfer here...
goto wait5m

The playing with "stopftp.flg" allows you to create a file "stopftp.flg" to
terminate the batch cleanly.
Using PING N delays for (N-1) seconds
Consequenly, the inner-loop executes each 5 secs, and the Number of Loops
required is 60

HTH

....Bill

My FTP server requires a username and password can you show how the user and
password would be writen in to you code above.

Cheers
Pat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top