Re: File.Exists does not work on some machines

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Bas" <Bas@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OenI2I4kFHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
> 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!!)

Can I assume that this is a desktop vb application and not a web-based one?
I only ask because a web-based one will run within a different account than
the one you are logged in using.

The only other suggestion I have is that you download FileMon from
SystemInternals (http://www.sysinternals.com/Utilities/Filemon.html), run it
on the machine giving you problems and look and see what it thinks you are
doing. That will capture all reads and writes on your system, it should trap
the scan of the directory when doing the File.Exists("c:\docs\myfile.txt")
and might give an indication of any issues, so it might give you another
angle on the problem.

Other than that, I'm out of ideas.

Brian.

www.cryer.co.uk/brian



.



Relevant Pages

  • DeletePrinter fails with ERROR_ACCESS_DENIED
    ... there are no jobs waiting in the printer, and the app. ... Administrator? ... I've tried this on 2 separate XP machines, ...
    (microsoft.public.win32.programmer.gdi)
  • DeletePrinter Fails with ERROR_ACCESS_DENIED
    ... there are no jobs waiting in the printer, and the app. ... Administrator? ... I've tried this on 2 separate XP machines, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Is complete home security possible?
    ... >> than an administrator level account, I will an error message on FS98, ... I have a clean disk image made from Norton Ghost, ... >> and I regularly ghost my machines once a month. ... Well, I keep important files on a second hard disk in the NAT Box, ...
    (comp.security.firewalls)
  • Re: Request for suggestions re: architecture of IntraNet/Socket app[s]
    ... I am commissioned with determining the "right" architecture for an application for controlling movement of stock in a warehouse. ... Much of your system describes monitoring -- control implies schedule and tracking for purposes of changing system operation -- correct? ... If multiple machines can handle the pieces and some machines do different operations -- then there is an element of scheduling and a time frame in which to complete. ... separate RealTime system either from the IntraNet server app OR from another ...
    (borland.public.delphi.non-technical)
  • Re: Admin Password change causes problem ?
    ... security of other network attached machines. ... > This is not a Domain, just a group of machines set up as workgroup ... how many had a login with Administrator ...
    (microsoft.public.win2000.security)