MartyConnelly
martyconnelly at shaw.ca
Fri Feb 28 01:56:00 CST 2003
I think I will give up on the recursive Dir function and try the api's below and see if there is any difference. I was blowing up on the System Volume Information directory which is a hidden directory for Restores Private Declare Function FindFirstFile Lib "kernel32" _ Alias "FindFirstFileA" _ (ByVal lpFileName As String, _ lpFindFileData As WIN32_FIND_DATA) As Long Private Declare Function FindNextFile Lib "kernel32" _ Alias "FindNextFileA" _ (ByVal hFindFile As Long, _ lpFindFileData As WIN32_FIND_DATA) As Long Drew Wutka wrote: >This is just a guess, but I think it's an OS issue. If you look at your >favorites in Internet Explorer, you'll see NO extension, even if you have >this option turned on in your File/Folder settings. I think this is a quirk >of the OS. I wanted to 'open' a .url file, to read it, and to do this, I >had to copy the file to a 'temp' directory, then go into the dos prompt and >rename them there. > >I had similar problems with .cnf files. (Structure.cnf is the file that >FrontPage uses to store your websites 'navigation' structure. It's a simple >comma delimited file, but you can't see the extension from Internet >Explorer.). > >I have a feeling that it is a 'hidden' tag within NTFS. NTFS has lots of >file 'tags'/properties that you don't have typical access to. Take a look >at RoboCopy, (a Resource Kit utility), and you'll see that it can 'tag' >files with all sorts of extra 'markers'. What I mean by this, is that most >'backup' utilities use the Archive flag. That is a pretty standard DOS file >flag. However, with RoboCopy, you can set all sorts of flags on a file so >that RoboCopy can do more complex 'checking' on various files. It's wierd, >and personally, I have never bothered to look for documentation on those >'extra' file tags. > >Drew > >-----Original Message----- >From: MartyConnelly [mailto:martyconnelly at shaw.ca] >Sent: Thursday, February 27, 2003 12:57 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Dir Function Oddities and WinXP > > > >I have an Access97 mdb that I use to find duplicate files >or list all the IE favourites on a disk using the Dir() function in WinXP. > >It takes 3 parameters. ie. to find all the url files (IE shortcut >Links) on a disk, >I type in parameters "c:\" ,"*","url", it only returns a few ".url" files >It skips some lower level directories like "My Documents and Settings" > >To get all the IE favorites, I have to specify the lower level >directory exactly >in parameters "c:\MyDocuments and Settings" ,"*","url" > >I can understand, this happening with multi-user settings on WinXP >but is this change in Dir function behaviour documented anywhere >as it is different from Win9x > > > >