Search found 6 matches

by CheeseFox
22 Dec 2008 23:04
Forum: DOS Batch Forum
Topic: FTP pull data files without overwrite
Replies: 7
Views: 17924

Not the shortest nor the most elegant of codes. but it works well. theres a simple logging function encoded too that shows Start Time, New Files downloaded and End time. the extension thing is a workaround as some FTP servers add a LFCR or such character at the end of every reply. the "#" ...
by CheeseFox
10 Dec 2008 04:40
Forum: DOS Batch Forum
Topic: FTP pull data files without overwrite
Replies: 7
Views: 17924

here i am talking to myself... LMAO ok.. i got it to work... in a fairly different way than the original code. but the basis is still there... took me a day to figure out that i needed the "setlocal enabledelayedexpansion" environment variable for some stuff... i'll clean up the code befor...
by CheeseFox
09 Dec 2008 21:11
Forum: DOS Batch Forum
Topic: FTP pull data files without overwrite
Replies: 7
Views: 17924

I also noticed some junk characters (#) when the 'ls' list is long. So i guess i'll need to put the %%A into a variable to trim off the hidden character at the end and to remove all the junk #s in the filenames. But i cant seem to do a "set temp1=%%A" or similar at all.. been a decade sinc...
by CheeseFox
09 Dec 2008 20:58
Forum: DOS Batch Forum
Topic: FTP pull data files without overwrite
Replies: 7
Views: 17924

Hi DosItHelp, i'm getting the error "The input line is too long" at the line Call Set "FileList=%%FileList%% "%%A"" ................................ a side question, is it possible to pass the %%A variable value into a %temp1% variable for each loop? i also noticed that...
by CheeseFox
06 Dec 2008 02:29
Forum: DOS Batch Forum
Topic: FTP pull data files without overwrite
Replies: 7
Views: 17924

Hi DosItHelp, been going thru the code since i saw the post... i've changed << %temp%\%~n0.ftp >> to something akin of << c:\temp.ftp>> to get it to create the temporary script file figured out why the extractFileSection won't work with Echo On. (i like to use echo on to learn how things work... hee...
by CheeseFox
02 Dec 2008 19:49
Forum: DOS Batch Forum
Topic: FTP pull data files without overwrite
Replies: 7
Views: 17924

FTP pull data files without overwrite

Hi ppl, its nice to see such a forum still around. Batch files are sooo very useful at automating some tasks. I'm writing a script to pull datalogs from an offsite FTP server. I'm having trouble finding way to write it so that the Script when pulling data does not auto-overwrite old files on local. ...