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

  1.    18 Dec 2017 #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 ComputerSystem Spec


  2. Posts : 296
    Windows 10 Pro 1709 16299.192
       18 Dec 2017 #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 ComputersSystem Spec

  3.    18 Dec 2017 #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 ComputerSystem Spec

  4.    20 Dec 2017 #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 attribs.png  
      My ComputerSystem Spec

  5.    20 Dec 2017 #5

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

  6.    20 Dec 2017 #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 ComputerSystem Spec


 

Related Threads
Explorer shows file extensions suddenly, and can not be unchecked. Robbie
File Explorer shows too many drives in Drivers and Hardware
I have 2 HDDs split into 2 drives each: C,D,E,F.. I also have one DVD drive. Also one Card Reader hooked to USB. So what the file explorer shows is C, D, E, F, DVD, Removable disk, I, J, K, and L. How do I get rid of these extra drives? They do...
hi, i have an annoying problem. when i plug a usb drive, the file explorer shows the same drive with the same drive letter twice. it's no big deal but annoying like i said.. how can i fix this
The volume (V:) is formatted as Fat32. Maximum Fat32 volume size is 2 TB. To regain all of the volume space, format as NTFS, or split into 2TB and 1TB Fat32 volumes.
Hi there Anybody else get the problem of external USB volumes appearing TWICE in the file explorer list (Build 9860). 7948 Not a show stopper but annoying. Cheers jimbo
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 06:43.
Find Us