Re: File.Exists does not work on some machines



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
>
>


.



Relevant Pages

  • Re: Compact and Repair in Front-Ends
    ... eXecute and Delete) on the folder where the MDB file exists. ... installed version of Access on the machines is 2003. ... the frontends have been placed on the desktops of the user machines. ... Db1,Db2, Db3 etc is being left in the server folder, while the actual DB ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Compact and Repair in Front-Ends
    ... eXecute and Delete) on the folder where the MDB file exists. ... installed version of Access on the machines is 2003. ... the frontends have been placed on the desktops of the user machines. ... Db1,Db2, Db3 etc is being left in the server folder, while the actual DB ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Printers Folder
    ... "EMF formatted spl files. ... GDI files are usually in ... WINNT\temp folder? ... The 2000 machines are running with the latest SP ...
    (microsoft.public.win2000.printing)
  • Re: Home Networking
    ... Do both machines have identical userid/password combos? ... on the network. ... >therefore be viewed in the My Network Places folder, ... >> Using The Shared Documents Folder ...
    (microsoft.public.windowsxp.newusers)
  • Re: Best way to do a HD "back up"?
    ... Boot in target disc mode via firewire and just ... either network or TDM between machines. ... I know for eg that my movies and iTUnes folder hasn't ...
    (uk.comp.sys.mac)