File Attributes - Shows as Hidden in DOS, shows as System in Explorer


  1. Posts : 11
    Windows 10
       #1

    File Attributes - Shows as Hidden in DOS, shows as System in Explorer


    I had a user complain he couldn't see (& delete) a lock file our program had created.

    I can find it in a command prompt, dir /ah (and NOT dir /as). In Explorer, Folder Options->View->Uncheck "Hide Protected operating System Files" which stops Explorer displaying files with the System attribute set (+S) (properties confirms the file has RHSAI)

    Neither the command prompt nor the explorer window are running with Administrative permissions.

    Any idea why this file should have different attributes in these two processes?
      My Computer

  2. storageman's Avatar
    Posts : 1,020
    Windows 10 Pro 20H2 19042.572
       #2

    What Version of DOS ? What File system does this file reside in ? Most DOS O.S.'s never supported NTFS ! Results could really be mixed.
      My Computers

  3. lx07's Avatar
    Posts : 5,479
    2004
       #3

    dir /ah shows hidden and system, dir /as shows only system
    Code:
    c:\>dir /ah
     Volume in drive C is MacBook
     Volume Serial Number is 56FB-28EE
    
     Directory of c:\
    
    11/20/2017  02:18 PM    <DIR>          $Recycle.Bin
    04/02/2017  06:40 AM    <JUNCTION>     Documents and Settings [C:\Users]
    12/16/2017  04:09 PM    <DIR>          OneDriveTemp
    12/16/2017  04:08 PM     2,818,572,288 pagefile.sys
    10/26/2017  10:51 PM    <DIR>          ProgramData
    10/18/2017  12:47 PM    <DIR>          Recovery
    12/16/2017  04:08 PM        16,777,216 swapfile.sys
    12/11/2017  10:33 AM    <DIR>          System Volume Information
                   2 File(s)  2,835,349,504 bytes
                   6 Dir(s)  18,647,650,304 bytes free
    
    c:\>dir /as
     Volume in drive C is MacBook
     Volume Serial Number is 56FB-28EE
    
     Directory of c:\
    
    11/20/2017  02:18 PM    <DIR>          $Recycle.Bin
    04/02/2017  06:40 AM    <JUNCTION>     Documents and Settings [C:\Users]
    12/16/2017  04:08 PM     2,818,572,288 pagefile.sys
    10/18/2017  12:47 PM    <DIR>          Recovery
    12/16/2017  04:08 PM        16,777,216 swapfile.sys
    12/11/2017  10:33 AM    <DIR>          System Volume Information
                   2 File(s)  2,835,349,504 bytes
                   4 Dir(s)  18,647,650,304 bytes free
    
    c:\>
    If you want you can exclude system and just show hidden
    Code:
    c:\>dir /ah-s
     Volume in drive C is MacBook
     Volume Serial Number is 56FB-28EE
    
     Directory of c:\
    
    12/16/2017  04:09 PM    <DIR>          OneDriveTemp
    10/26/2017  10:51 PM    <DIR>          ProgramData
                   0 File(s)              0 bytes
                   2 Dir(s)  18,645,086,208 bytes free
    Difference between dir /ah and dir /as in File explorer is not "Hide protected operating system files" it is "Show hidden files" so unless I don't understand your question they are not ticking the correct box.
      My Computer


  4. Posts : 11
    Windows 10
    Thread Starter
       #4

    O/S is Win 10 Professional, looking at files on a local disk (NTFS).
    Code:
    D:\temp>attrib ~variantsnone1.scm
    A   HR             D:\temp\~variantsnone1.scm
    See I don't think it has got the system attribute set

    and querying the same file with Explorer
    Attachment 168885
    Attached Thumbnails Attached Thumbnails File Attributes - Shows as Hidden in DOS, shows as System in Explorer-attribs.png  
      My Computer

  5. lx07's Avatar
    Posts : 5,479
    2004
       #5

    craker said:
    and querying the same file with Explorer
    Attachment 168885
    Link is not working. Can you try again.
      My Computer


  6. Posts : 11
    Windows 10
    Thread Starter
       #6

    It's a dead link (to a picture I removed, just removed my personal details). Can't seem to remove the link using the editor though...
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:04.
Find Us




Windows 10 Forums