Re: File.Exists does not work on some machines
- From: "Bas" <Bas@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 15:40:34 +0100
Yes file exists!
(I even copied the whole folder from my Dev PC....to make sure)
At the moment I'm logged in as Administrator
This is a simple workstation "Standalone" in effect
Tried the app on 3 machines in the office (peer-peer setup)
My PC and Notebook BOTH have VStudio - work OK on both !
The rest of the app works on ALL machines!
although I'm having problems with Word and Excel objcets but thats another
story
(most likely I'm not disposing of all the objects I've created - which I
could close ALL the objects created in a Sub Routine at one!!)
"Brian Cryer" <brianc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1122560323.10782.0@xxxxxxxxxxxxxxxxxxxxx
> "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:
- Re: File.Exists does not work on some machines
- From: Brian Cryer
- Re: File.Exists does not work on some machines
- References:
- File.Exists does not work on some machines
- From: Bas
- Re: File.Exists does not work on some machines
- From: Brian Cryer
- File.Exists does not work on some machines
- Prev by Date: Bluetooth GPS
- Next by Date: Re: Entering text without a textbox.
- 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
|