• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

DOS batchfile help

saimike

Senior member
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).
 
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.
 
Back
Top