REALLY Hidden file on windows 2000?

From: Rod Person (RexLonginus_at_AbnormallyLarge.com)
Date: 12/15/03

  • Next message: Serguei: "Re: ReadEventLog"
    Date: 15 Dec 2003 12:19:59 -0700
    
    

    Hello,

    I have done something today that has me puzzled and hope that someone
    knows why.

    I have a File:
        DefaultSettings.rc - stored on a network share, with Attributes
                                  Hidden and Read Only

    My application (upon first use) make a copy of that file on your local
    hard drive and removes the read only flag.

    using the follow code:
            
            CopyFile(PChar(GL_INI_DEFAULT),PChar(RC_FILE),FALSE);
          FileSetAttr(RC_FILE,(not faReadOnly));

    with GL_INI_DEFAULT being the DefaultSettings File and RC_FILE being
    the local file's name.

    This all works fine. What I don't understand is that the hidden local
    file is not visible in window explorer when you have the show hidden
    files check in folder options. You can she the file if you go into DOS
    and do a DIR /a.

    Now, all this goes away. Because if the user changes anything in this
    file, by using the program the file then becomes non-hidden, but I
    assume this is because I not using API calls but AssignFile, Writeln
    and CloseFile.

    Just wondering...

    =====================================================================
    Rod

    http://opensourcebeef.homeunix.org

    "...it's like, a giant nipple!"
      Ed Pamer, circa 1992.


  • Next message: Serguei: "Re: ReadEventLog"

    Relevant Pages

    • Re: TCP/IP comms problems between WinXP and DOS
      ... I have written client and server versions ... In the instance where I have a problem the DOS system is running as client, ... By simple changing of i/p addresses / network names I have run the client ...
      (microsoft.public.dotnet.languages.vc)
    • Re: Odd Behavior on Bootup
      ... what you referred to as the "DOS box". ... Ipconfig.exe, among things, Displays all current TCP/IP network ... MS-MVP Windows Shell/User ... antivirus apps in Safe Mode. ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: TCP/IP comms problems between WinXP and DOS
      ... I have written client and server versions ... In the instance where I have a problem the DOS system is running as client, ... By simple changing of i/p addresses / network names I have run the client ...
      (microsoft.public.dotnet.languages.vc)
    • Re: what are the current dos compatible HP printers?
      ... That the DOS application can be amended to work with a network port ... Controllers which do not run DOS but a specific logic control software ...
      (comp.periphs.printers)
    • Re: How to setup DOS Client to login to Windows 2000 Domain?
      ... > I have some DOS PCs and right now they are login to Novell. ... > planing to migrate my Novell server to Window 2000 server. ... Are you familiar with how to make a DOS network bootable diskette? ... DOS Network Boot Floppy: ...
      (microsoft.public.windows.server.networking)