REALLY Hidden file on windows 2000?
From: Rod Person (RexLonginus_at_AbnormallyLarge.com)
Date: 12/15/03
- Previous message: Rob Kennedy: "Re: REALLY Hidden file on windows 2000?"
- Next in thread: Rob Kennedy: "Re: REALLY Hidden file on windows 2000?"
- Reply: Rob Kennedy: "Re: REALLY Hidden file on windows 2000?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Rob Kennedy: "Re: REALLY Hidden file on windows 2000?"
- Next in thread: Rob Kennedy: "Re: REALLY Hidden file on windows 2000?"
- Reply: Rob Kennedy: "Re: REALLY Hidden file on windows 2000?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|