Re: FTP huge file list...
Code looks ok and works ok but then I don't have 40K files in my ftp folders! I'm not sure that the DoEvents are really necessary and you should remember to close (and probably dispose) the StreamReader but otherwise I can't see anything that would explain a problem at this end of the transaction.
Re: FTP huge file list...
without the doevents, its not updating the screen often.
Yeah code works, just wondering if there is another way? can you pull the file list in chunks?
ive put in a request to move older files to an archive.. but meantime this is bad lol
Re: FTP huge file list...
Quote:
without the doevents, its not updating the screen often.
What is there to update?
Quote:
can you pull the file list in chunks?
Not that I know of. ftp hasn't really changed much since its inception. It's still a rather rudimentary way of doing things so long time processing is kinda expected. I think I'd make that archive request a demand ... with menaces!
Re: FTP huge file list...
Quote:
Originally Posted by
dunfiddlin
What is there to update?
The label that displays what it's doing...
AT any rate... have you thought about tossing this into a BackGroundWorker (BGW)? Then it can basically run in the background w/o typing up the front end... would allow you to get rid of the DoEvents, and might free up the front end so that it doesn't appear to take so long.
-tg
Re: FTP huge file list...
i would have ZERO clue how to due that... never tried it
Re: FTP huge file list...
Quote:
The label that displays what it's doing...
Well, not really, as the two status messages are transmitted before the actual ftp process begins. They didn't need any help in doing so when I tried it.
Re: FTP huge file list...
:P ok, i shuffled stuff around and THAT doevents stayed... there are a few of them. (not seen).. sheesh! lol