Re: File.Exists does not work on some machines

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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: Unable to add users to local groups on member workstations
    ... Joe Richards Microsoft MVP Windows Server Directory Services ... The software firewalls on the DC and workstations are turned off. ... "Brian P." wrote in message ... and am able to add users to the local security groups if I add ...
    (microsoft.public.windows.server.active_directory)
  • Calling remote dlls from a server
    ... Certain portions of the application require regular maint. ... Is there a way to place the updated dll on the central server that all ... of the workstations talk to and have them call the dll from there, ... trying to minimize downtime caused by regular updates. ...
    (microsoft.public.dotnet.framework)
  • Re: Brian Hamilton Kelly
    ... >>I regret that a posting on demon.service has announced that Brian ... a regular and valued contributor to this group over ...
    (uk.telecom)
  • RE: Sorting alphanumeric
    ... other "'" came out after the regular numbers. ... "Joanne" wrote: ... > I would like to sort some text which is formatted in column one as: ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Brian Hamilton Kelly
    ... >I regret that a posting on demon.service has announced that Brian ... a regular and valued contributor to this group over ...
    (uk.telecom)