FTP login move every 5mins

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
Back
Top