2022 Developer Survey is open! Take survey.

Questions tagged [file-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
20 views

Folder icon, desktop.ini and file attributes

When we set custom icons for folders, a desktop.ini file will be generated in it with the following structure: [.ShellClassInfo] IconResource=${path to the icon file},0 [ViewState] Mode= Vid= ...
user avatar
0 votes
0 answers
42 views

Add attribute to a file/folder

I tried that to add an attribute to a file/folder Get-ChildItem '$PATH' -Recurse | foreach{$_.Attributes = $_.Attributes + 'Compressed'} Problem is that it create a cycle like that : Not compressed &...
user avatar
  • 1
0 votes
1 answer
15 views

Identifying files which were created on my local system at a certain date, despite "Date created" metadata retained from installer

I've installed a program, and all the files the installer created have identical "date created" and "date modified" metadata, indicating the date that the file was last modified by ...
user avatar
0 votes
0 answers
114 views

What can prevent lsattr from being able to list the attributes of a file in Linux?

Windows 10 -> WSL 2 Pengwin (Debian) I'm trying to modify an executable (npm in this case) but am getting denied all the way. At this stage I just want to at least lattr the file to see if it's ...
user avatar
  • 111
0 votes
0 answers
34 views

batch copy time date attributes/stamps from multiple files to others

i want to copy the date time attributes from files to others, ie time created , time modified , time accessed. for now, if i want to copy the date time attributes from some epub files to converted pdf ...
user avatar
1 vote
0 answers
55 views

In windows 10 is there a way to have different color or font for read only files

I'm trying to know if windows 10 File Explorer allows showing a different color or different font in the file name or icon depending on the attributes of that file. Example: Attribute "Archive&...
user avatar
0 votes
0 answers
19 views

Execute a command on filesystem event based scheduling

I'm in an attemp of keeping my files ordered and traceable under linux. As you know many issues present: cdate is not mantained, every other dates are modified with every copy, results are piles of ...
user avatar
1 vote
0 answers
126 views

Use ATTRIB command over a batch itself

Well, this is the thing, i have this in my batch file: attrib +R +H +S "%STARTUP%\%0" icacls "%STARTUP%\%0" /deny *S-1-1-0:^(DE,WA^) *S-1-5-7:^(DE,WA^) attrib +R "%STARTUP%\%0&...
user avatar
0 votes
0 answers
135 views

Use robocopy to copy without attributes for files and directories

I'm trying to run robocopy to copy data but not copying attributes (timestamps are ok). My first thought was to run with these switches: /copy:dt /dcopy:t The way I interpret the documentation, those ...
user avatar
1 vote
1 answer
40 views

The arguments "/S" and "/L" of the command ATTRIB won't work

I'm creating a program where I need to make all folders and files, in a given directory, invisible. For that, I'm using the CMD's command ATTRIB, with the arguments /S /D, as well as in the code below:...
user avatar
1 vote
1 answer
99 views

How do I find all files in subfolders that are missing a specific property?

On my main Windows 10 machine, I take a lot of video game screenshots with Steam. Within Steam's screenshot folder (Steam\userdata\<user_id>\760\remote), it creates a new folder for every game, ...
user avatar
  • 21
1 vote
1 answer
1k views

How to clear the "date last opened" attribute on macOS Big Sur

I am trying to clear this extended attribute for all the files located in the Recents smart folder. They are ordered by the "date last opened" attribute. I am trying to clear this attribute ...
user avatar
1 vote
1 answer
427 views

How to use keyboard shortcuts for hidden desktop shortcuts/icons?

I created a shortcut on the desktop and assigned a Keyboard Shortcut to it from the properties menu to it. Now if I assign the hidden attribute, the shortcut gets hidden and Keyboard shortcut stops ...
user avatar
0 votes
3 answers
2k views

Accidentally deleted .Trashes folder. What should I do?

When I unhid all the hidden files and folders on my external flash drive, I accidentally deleted the entire .Trashes folder. I searched about it online and I got the answer that this "Trashes&...
user avatar
  • 1
0 votes
1 answer
341 views

How do I reverse attrib settings to default?

How do I reverse attrib settings to default? I put the command "ATTRIB -H -R -S /S /D X:." (X = Drive letter) and now it shows hidden files and folders. I then put the command "ATTRIB +...
user avatar
  • 1
2 votes
3 answers
2k views

In Windows, how do I list the extended attributes — or metadata — for an MP3 file?

I have multiple folders with MP3 files. Some files are duplicates but in separate folders. I want to create printable list of extended attributes — or metadata — to retain the file with the highest ...
user avatar
  • 21
2 votes
0 answers
2k views

Renaming a file in Explorer Win10 does not change modified date

This is something that never occurred to me but I noticed that when I rename a file its modified attribute will remains unchanged. This happens on multiple devices I tested it on (Win10, NTFS) and for ...
user avatar
0 votes
1 answer
339 views

Bulk edit SFX script

I create custom portable versions of apps using WinRAR's SFX module (among other things, the setup option Run after extraction). In the cases where 32-bit / x86 and 64-bit / x64 versions are available,...
user avatar
1 vote
0 answers
165 views

Retain xattrs in files (macOS files on Linux SMB server)

I run an SMB4 server on Ubuntu Server 19.04 using ZFS as the server file system (separate from the boot drive). I use this server to store files from my Macs (10.7, 10.8, 10.11, 10.12, 10.13, 10.14). ...
user avatar
0 votes
0 answers
46 views

Folder's "system" attribute disappears after copying to USB drive

I have a "Desktop.ini" file in a specific folder. I define the folder as a system folder using cmd : attrib +s folder and everything works well. But when I copy the folder to a USB drive, my folder ...
user avatar
  • 1
2 votes
1 answer
112 views

How to list only files with a specific extended attribute in macOS?

I have a directory with about 10,000 files and I'm using ls to list the files. However, I want to list only the files that have the com.example.mycolor extended attribute set. What I tried: ls -l@ |...
user avatar
9 votes
1 answer
1k views

What are "project IDs" in linux, as mentioned in the chattr manual?

I was reading through the manual for chattr on my Linux machine (kali4-amd64) when I saw this in the list of definitions of file attributes: A directory with the 'P' attribute set will enforce a ...
user avatar
1 vote
0 answers
448 views

Fix Deleting the files but not it's extended attribute

I am trying to deleted empty folder but with not luck after some searching i seem to me that i have deleted the files in those folder but not it's extended attribute amr@MacBook ~/folders> ls -la ...
user avatar
0 votes
0 answers
4k views

how to change files into folders (Windows 10)

I was using autoit to rename folders, and I used FileMove instead of DirMove. It did move all the data from the folder, but wrote the destination folder as a FILE - Without the D attribute - so ...
user avatar
2 votes
2 answers
193 views

Exclude system entries with "ls" or "find"

Compare Cygwin: $ ls -1 -N /cygdrive/c $Recycle.Bin cygwin64 Documents and Settings pagefile.sys PerfLogs Program Files Program Files (x86) ProgramData Recovery System Volume Information Users ...
user avatar
  • 1
3 votes
1 answer
2k views

How do I delete ~/Library/Mail with a com.apple.quarantine extended attribute?

I'm running macOS Mojave 10.14. Mail.app and our Exchange server periodically quit talking to one another. The primary symptom of this is that the Inbox shows nothing even though webmail and my ...
user avatar
  • 458
2 votes
1 answer
327 views

batch change date of all files in dir based on name order [closed]

I have a lot of images sorted according to their filenames: img1.jpg, img2.jpg ... I need to change the file date which is now the same on all images so that img1.jpg date is before img2.jpg etc I ...
user avatar
  • 257
2 votes
0 answers
238 views

What are the most reliable attributes for comparing two files in order to confirm/verify they are 100% identical?

I had the following situation: I copied 5.5 TB worth of data (in total over 100,000 directories and 10 million files) from an old disk to a newly-purchased external disk. I used Ultracopier on ...
user avatar
  • 21
4 votes
2 answers
1k views

How do I see and set the NTFS compression attribute in Linux?

Browsing an NTFS partition in Konqueror or Dolphin, the compressed files and folders are not displayed with blue names, and there doesn't seem to be any page in the file properties dialog to see or ...
user avatar
  • 1,156
0 votes
3 answers
1k views

What does "read only" and "non executable" means for Folders?

Talking about authorizations, I know what "read only" and "non executable" would mean for a file. But what do those two mean for a folder? And how can I change those access authorizations? Somehow ...
user avatar
3 votes
2 answers
3k views

How to clear (remove) macos extended attributes recursively from a directory?

I downloaded and extracted an archive from GitHub (Homebrew/brew) into a temporary directory under /root (with help from sudo). If I do ls -l I see an extended attribute: total 0 drwxr-xr-x@ 16 root ...
user avatar
  • 251
1 vote
0 answers
350 views

Copy file attributes with ffmpeg

I'm using the following command to remux audio with ffmpeg (i.e. to copy audio stream to another video file): ffmpeg -i ../../data/1.mp4 -i out.avi -c copy -map 0:0 -map 1:0 -shortest out.mp4 Is ...
user avatar
  • 243
2 votes
1 answer
582 views

Windows batch command to assign specific time/date stamp to files

I know how to assign the current time and date to a file using copy /b filename.ext +,, but how can I assign it a different time and date, as in this variable: set DateTime=01/01/1970 03:00 AM?
user avatar
10 votes
1 answer
4k views

Chrome crashpad crashes on xattr

I have a macos High Sierra 10.13.3. When running Chrome in headless mode to execute automated tests, I get this error: [0207/114344.742771:ERROR:xattr.cc(64)] setxattr org.chromium.crashpad.database....
user avatar
  • 111
0 votes
0 answers
2k views

Why doesn't "xattr -w com.apple.FinderInfo /opt" work?

I'm trying to add the com.apple.FinderInfo extended attribute to my /opt directory so that it will show up as an installable folder for installing packages on MacOS 10.13.2 High Sierra. I tried ...
user avatar
  • 101
1 vote
1 answer
256 views

Windows encrypt folder: Some files not encrypted

I did following two things to encrypt all the content of a root folder named "Foo": The "Foo" folder has many levels of sub-directories with each having multiple files. All of the files in Foo were ...
user avatar
-1 votes
1 answer
2k views

Windows 10 showing "attrib +h" files

I recently bought a new tower that has the Windows 10 OS on it. I am facing one issue with it right now. Back in Windows 7 I was able to hide files and folders completely thanks to the CMD function ...
user avatar
  • 115
0 votes
1 answer
53 views

OS X Sierra, "Pictures" folder hijacked by an application - how to fix?

A crummy application (MacFamilyTree) somehow hijacked my system's "Pictures" folder. It thinks it's an application now, and has acquired an 'Open with:' panel in the GetInfo window. There's no way to ...
user avatar
1 vote
0 answers
124 views

Earliest possible date for a folder / file attribute? [duplicate]

Just for some context, so people understand why I'm doing what I'm doing... My movie collection is stored in this fashion; Movies (folder) |---- Movie title, Year released (folder) |---- ...
user avatar
0 votes
0 answers
133 views

What just happened to my Windows PC? icons don't show; all folders are read-only

Since yesterday my PC has been behaving oddly. The basic symptoms are: Scripts that worked earlier in the day now fail with file/folder permission errors. More specifically, this error in NodeJS (...
user avatar
1 vote
1 answer
372 views

What does the `I` mean in `attrib` output?

The following image is a screenshot after I typed attrib in C: What does the I mean?
user avatar
13 votes
3 answers
8k views

What do new Windows 8/10 attributes mean: No scrub file (X), Integrity (V), Pinned (P), Unpinned (U)

I just opened help for ATTRIB command on Windows 10.0.15063, and found out that there are new attributes I didn't know about. >attrib /? Displays or changes file attributes. ATTRIB [+R | -R] [+A |...
user avatar
  • 1,923
1 vote
1 answer
295 views

Run attrib on a folder in Linux

I have a strange question: if I install wine on Linux will I be able to do a shell exec in php to add the proper attributes to a folder so when it is transferred to Windows it is hidden? For example: ...
user avatar
1 vote
2 answers
42 views

How to create a file that has the properties of another and links to it when opened?

I wonder if anyone knows if it is possible in Windows 7 to create a file (let's call it a source file) that represents another file, has it's properties (including size), but when opened actually ...
user avatar
  • 23
1 vote
0 answers
51 views

How determine when last time USB hard/flash drive was read/written to?

I am trying to determine when a file was last written to a USB hard/flash drive. An image was restored to a USB hard drive using this USB image tool. The modification/creation dates are old since the ...
user avatar
0 votes
1 answer
42 views

Hiding Files in windows 8.1

I am trying to hide a whole directory, say, I have a folder named x with files y, z and folders 1 and 2 that contain, respectively, files 3 and 4... When I try to hide the whole X directory, but some ...
user avatar
13 votes
6 answers
23k views

Can a file appear to be modified before it was created? [duplicate]

Is it possible to have a file which has a modified date that is before its created date? What actions would cause this event to occur?
user avatar
0 votes
1 answer
166 views

Regarding files resulted in equating file properties in "ls" command

I have a folder in which there are thousands of images. Of those thousand images, I want to bring together all those images whose “Last created” and “Last modified” properties are exactly same. ( In ...
user avatar
0 votes
1 answer
582 views

Which namespaces of xattrs a non root user can set in android?

I know it isn’t possible to setsecurity.capabilitiesattributes without uid 0 or CAP_SETFCAP. However I was unable to find a complete list of what namespaces of names are allowed or what are those ...
user avatar
  • 1,671
0 votes
0 answers
103 views

Do file attributes in CDs and DVDs change if you access them?

I have snooped over my boyfriend's old CDs and DVDs. I opened and copied (with copy paste) some of the files (jpeg and videos). Does this action change the file attributes (date accessed, etc.) of the ...
user avatar