sequential file naming
Does VB express alow to do a variable file name?
I'm using a function to download a file off a website every five minuets, but I don't see a way for VB to change the file name each time.
| | Dim webClient1AsNew WebClient webClient1.DownloadFile("http://www.URLtoDownloadFrom.net", "C:\filename.html")
|
But I can't get filename.html to start a filename01.html, filename02.html....
Is It capable?
Actually, you would need to do
The way you had it you would get a filename like c:\filename.html1 or html2...
I think thats right anyways.....if not someone correct me.
Jason
You are correct Jason,
This code would work ok, but if it always saves with the same name, then you'll have files being overwriten when the program restarts, (or iis is turned off).
You may want to include the date/time in the file name.