digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
I wrote a small application that uses webclient to download a zip file fromm the internet:
myWebClient.DownloadFile(myStringWebResource, downloadloc & fileName)
Next, I unzip the file and parse out the text file into a database. I'm using Windows 7 and the whole process works fine on my computer. The file is downloaded, I'm never prompted to "copy and replace" no matter how many times I download a new copy of the file..everything is perfect!
Here's where the problem is...A colleague of mine is located in Canada (I'm in the US) and he's also on Windows 7. When he tries to pull the zip file he DOES get prompted with a "copy and replace" box. When he presses that things seam to go okay and we can see that file gets unzipped. However, a little bit later in my code I do a check just to verify the file does exist and when that part of the code is called it throws back an error say the file doesn't exist! This is the part of code that is checking that:
If My.Computer.FileSystem.FileExists(downloadloc & unzipfile) Then
Do some stuff here...
Else
MsgBox("ERROR2: File does not exist! " & Now)
End If
So here is my question, why does the entire process work fine on my Windows 7 machine. Yet, on his not only does he get prompted to copy and replace the file, but he is also getting a messagebox saying the file doesn't even exist..When we can see that it does in fact exist!
Any help would be appreciated.
myWebClient.DownloadFile(myStringWebResource, downloadloc & fileName)
Next, I unzip the file and parse out the text file into a database. I'm using Windows 7 and the whole process works fine on my computer. The file is downloaded, I'm never prompted to "copy and replace" no matter how many times I download a new copy of the file..everything is perfect!
Here's where the problem is...A colleague of mine is located in Canada (I'm in the US) and he's also on Windows 7. When he tries to pull the zip file he DOES get prompted with a "copy and replace" box. When he presses that things seam to go okay and we can see that file gets unzipped. However, a little bit later in my code I do a check just to verify the file does exist and when that part of the code is called it throws back an error say the file doesn't exist! This is the part of code that is checking that:
If My.Computer.FileSystem.FileExists(downloadloc & unzipfile) Then
Do some stuff here...
Else
MsgBox("ERROR2: File does not exist! " & Now)
End If
So here is my question, why does the entire process work fine on my Windows 7 machine. Yet, on his not only does he get prompted to copy and replace the file, but he is also getting a messagebox saying the file doesn't even exist..When we can see that it does in fact exist!
Any help would be appreciated.