Computer Hope

Microsoft => Microsoft Windows => Windows 10 and 11 => Topic started by: rjbinney on September 11, 2018, 07:13:28 PM

Title: Joe Louis Was Wrong: I Can Hide But I Can't Run
Post by: rjbinney on September 11, 2018, 07:13:28 PM
I ripped a CD onto my HD using Windows Media Player. (For those who insist on continuity, this thread actually comes in reading order before this one (https://www.computerhope.com/forum/index.php/topic,168870.0.html).)

When I downloaded some album art and tried to save it as "folder.jpg", it wouldn't let me - said there was already a file. So WMP automatically drops an album cover in the folder? Coolcoolcool.

I didn't see anything in the folder, so I turned on "Show Hidden Items" in File Explorer. Sure enough, the file was there - along with an "AlbumArt_{B5020207-474E-4720-CCEE-6D2E71CAE800}_Large.jpg" and "AlbumArt_{B5020207-474E-4720-CCEE-6D2E71CAE800}_Small.jpg".

I clicked on the fun "Hide Selected Items" button to DEselect "folder.jpg", and nothing happened. I right-clicked on the file, and selected properties - the "Hidden" box is checked but grayed out.

I launched explorer.exe as Administrator, and had the same issues.

In "Security", I have full permissions for everything on the file except for "Special Permissions". That seems to be unchangeable, even as Administrator.

So what gives, Internet? How do I unhide this file?

Thanks,

Title: Re: Joe Louis Was Wrong: I Can Hide But I Can't Run
Post by: BC_Programmer on September 11, 2018, 07:29:52 PM
It's because the file has the System attribute set. That attribute is not accessible within Windows Explorer (and never has been). If the System Attribute is set then the Hidden Attribute is "locked" and cannot be changed.

You can change it using the command prompt and attrib.

attrib -s -h "C:\full\path\to\file.jpg" at the command prompt will remove it.
Title: Re: Joe Louis Was Wrong: I Can Hide But I Can't Run
Post by: rjbinney on September 11, 2018, 07:57:21 PM
Thanks. Outside of files in c:\windows, is there a reason for that attribute to be set on any file?

(In other words, can I go to a higher directory and change it for all files in descendant directories?)