Re: File.Exists does not work on some machines
- From: "Brian Cryer" <brianc@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 15:18:33 +0100
"Bas" <Bas@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23P3hAH3kFHA.2660@xxxxxxxxxxxxxxxxxxxxxxx
> I'm using
>
> If File.Exists("c:\docs\myfile.txt")
> msgbox("Found")
> End
>
> This work fine on machine with Vb.Net installed but NOT on regular
> workstations ie. when deployed!!
>
> Any ideas?
Just to get the silly and obvious questions out of the way:
1. Are you sure the file you are looking for exists on the deployed machine.
2. Does the process/application have read access to the folder? If it didn't
have read access then it might throw an exception - but I'm not sure so its
worth checking privileges.
hope this helps,
Brian.
www.cryer.co.uk/brian
.
- Follow-Ups:
- References:
- Prev by Date: Re: File.Exists does not work on some machines
- Next by Date: RE: Stored Procedure
- Previous by thread: Re: File.Exists does not work on some machines
- Next by thread: Re: File.Exists does not work on some machines
- Index(es):
Relevant Pages
|