Questions tagged [file-attributes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
4 answers
170 views

Can permissions and/or extended attributes lead to data loss? [closed]

This is related to having a portable drive in a format to be accessible for read and write in different operating systems. For example NTFS can be accessed in windows of course, in Linux quite easily ...
Fabio's user avatar
  • 111
0 votes
0 answers
98 views

Notepad++ does not detect attribute change from read-only to writable

My Notepad++ v8.5.1 does not recognize when an opened file changes from read-only to writable (by checking out in ClearCase). It still simply does not edit when typing. Even Reload / Reload from Disk ...
MattTT's user avatar
  • 101
0 votes
1 answer
156 views

Attribute Changer 11

I have downloaded the Attribute Changer 11 but I've got stuck it has failed for some reasons on my mp3 file: ZAČÁTEK ZPRACOVÁNÍ : 20:24:29 C:\Users\me\Desktop\Operads2\SPANEK\s_Ritual.mp3 selhalo=...
user1766349's user avatar
2 votes
0 answers
171 views

Does anyone have a way of Exporting File 'Creation Date' and 'Modified Date' in order to restore this data onto files from a backup

I am able to get the data I want using PowerShell: gci -path .\ -recurse | sort name | select name, LastWriteTime, creationtime The issue here is, I have an online backup solution. When you restore ...
Tim A's user avatar
  • 21
0 votes
0 answers
60 views

Cannot deal with some files even as a su: "-rw-r--r--" vs "-rw-r--r-"

I have a few files that I cannot deal with (e.g. head filename gives me head: filename: Permission denied). xattr with these files shows / does nothing. Here is an example session: vlad@MacBook-03:~/...
Vlad K.'s user avatar
  • 121
2 votes
1 answer
3k 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= ...
true_mogician's user avatar
0 votes
0 answers
223 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 &...
aac's user avatar
  • 1
0 votes
1 answer
27 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 ...
recognizer's user avatar
1 vote
0 answers
882 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&...
Bruno Ranhel's user avatar
1 vote
0 answers
343 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&...
Valentino Zaffrani's user avatar
0 votes
0 answers
806 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 ...
ProfessionalNature's user avatar
1 vote
1 answer
111 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:...
JeanExtreme002's user avatar
1 vote
1 answer
231 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, ...
Jobbo's user avatar
  • 21
2 votes
1 answer
3k 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 ...
user278705's user avatar
1 vote
1 answer
612 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 ...
batchcoding____s's user avatar
1 vote
3 answers
6k 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&...
NowOS's user avatar
  • 11
0 votes
1 answer
821 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 +...
NowOS's user avatar
  • 11
2 votes
3 answers
4k 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 ...
Paul's user avatar
  • 21
4 votes
0 answers
4k 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 ...
colonel_claypoo's user avatar
0 votes
1 answer
1k 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,...
mythofechelon's user avatar
2 votes
0 answers
303 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). ...
leetbacoon's user avatar
0 votes
0 answers
63 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 ...
Ali's user avatar
  • 1
3 votes
1 answer
558 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@ |...
american-ninja-warrior's user avatar
11 votes
1 answer
2k 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 ...
Rocketman173's user avatar
1 vote
0 answers
478 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 ...
amryadam's user avatar
0 votes
0 answers
8k 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 ...
user6212's user avatar
2 votes
2 answers
294 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 ...
Zombo's 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 ...
bmauter's user avatar
  • 478
2 votes
1 answer
589 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 ...
kofifus's user avatar
  • 299
2 votes
0 answers
286 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 ...
fesom's user avatar
  • 21
4 votes
3 answers
2k 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 ...
Boann's user avatar
  • 1,156
1 vote
3 answers
2k 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 ...
KansaiRobot's user avatar
7 votes
2 answers
5k 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 ...
brodybits's user avatar
  • 351
1 vote
0 answers
526 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 ...
machinery's user avatar
  • 253
2 votes
1 answer
1k 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?
Wally Walters's user avatar
11 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....
Francis's user avatar
  • 121
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 ...
Wes's user avatar
  • 101
1 vote
1 answer
323 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 ...
Vijay Chavda's 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 ...
Dean's user avatar
  • 115
0 votes
1 answer
55 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 ...
Lanse Stover's user avatar
1 vote
0 answers
126 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) |---- ...
Jonny Wright's user avatar
0 votes
0 answers
137 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 (...
BeetleJuice's user avatar
1 vote
1 answer
496 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?
George Tian's user avatar
13 votes
3 answers
10k 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 |...
LogicDaemon's user avatar
  • 2,003
1 vote
1 answer
753 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: ...
user2293554's user avatar
1 vote
2 answers
49 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 ...
daklone's user avatar
  • 23
1 vote
0 answers
54 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 ...
aquagremlin's user avatar
0 votes
1 answer
49 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 ...
laughincascade's user avatar
16 votes
6 answers
32k 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?
AlexanderRD's user avatar
0 votes
1 answer
232 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 ...
user607694's user avatar