Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Existing file is not found!
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows Server 2003
Miscellaneous
Thread ID:
01072670
Message ID:
01072673
Views:
19
Hi Rod,

Thanks for the idea. I will add this test to my code.

Now, what do I do if file() returns False? I know that the file exists (if this file disappears, my client's business pretty much goes to hell with it).

Obviously, when I re-run the program after the error, something is cleared-up/reset somewhere, for the file gets copied without a hitch. This, obviously doesn't happen during the three attempts that my code makes at copying the file.

Any ideas of what might be changing from one instantiation of my program to the next?

Thanks!

Alex


>Try this code and see what happens. this is from the VFP toolkit
>
> Public Shared Function File(ByVal cFileName As String) As Boolean
> Return System.IO.File.Exists(cFileName)
> End Function
>
>If this doesnt work look into a security issue with the CLR and accessing data on a shared drive.
>
>Rodman
Low-carb diet not working? Try the Low-food diet instead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform