DOS batchfile help

saimike

Senior member
Oct 30, 2000
393
0
0
this is really old school, but i need to write a batch file to automate ftp put/get. the ftp command file is done, now i'm working on making the .bat work a little better.

the .bat is quite simple. it loops 50 times. in each loop, it rasdials, ftp the same file from the same server, rasdial /disconnect, wait 5sec.

as the .bat runs, i would like to see something like this:

"9:40 Attempt 4 of 50. Dialing. FTP. Disconnecting."

as you may have guessed, I would like to see "Dialing" "FTP" "Disconnecting" when it does that.

can anyone suggest how I may accomplish this? The DOS references on the web (even wiki) do no seem to talk about how to concatenate results onto 1 line.

how i wish this were unix ... :/ then this can be easily done by "\\c" (i think).
 

skace

Lifer
Jan 23, 2001
14,488
7
81
If you are trying to update the same line of text, you can't do that in DOS, you need something like Kix32.

Although, it's really just a coding style. You can have it echo Dialing and then echo FTP and then echo Disconnecting and then have it make a status log of what passed and what failed and time/date the logfile.