Questions tagged [file-attributes]

115 questions
239
votes
32 answers

Windows equivalent of the Linux command 'touch'?

What do you use when you want to update the date-modified field of a file on Windows? commands accessible via C++, .NET, C#, or something native to Windows (Vista preferably) tools/applications preferably free, and if possible open source as…
facepalmd
  • 644
  • 3
  • 10
  • 14
139
votes
4 answers

Command to unlock "Locked" files on OS X

I copied a lot of read-only files from a Windows system to my Mac. When viewing the Info for each file using "Get Info", I can see they are Locked. I'm writing a bash script to copy over some files and I'm getting an error that says "Operation not…
Michael Prescott
  • 4,011
  • 13
  • 50
  • 65
92
votes
5 answers

How to remove read-only attribute recursively on Windows

I need to remove read-only attributes of all files under a directory recursively on Windows using command line. Could you please provide an example on this?
Mert Nuhoglu
  • 2,370
  • 3
  • 29
  • 36
91
votes
8 answers

Equivalent of chmod to change file permissions in Windows

Is there any Windows equivalent of Linux's chmod to change the permissions of a file?
sunmoon
66
votes
7 answers

How to hide desktop.ini files without hiding other hidden files/folders?

Is there anyway to hide desktop.ini files, but unhide them when I need them? They get in the way when I'm moving files and such but I do use them so deleting them isn't an option.
Oztaco
  • 1,505
  • 4
  • 18
  • 35
25
votes
4 answers

Can you show/list all extended-attributes and how?

Can you show/list all extended-attributes and how?
Trevor Boyd Smith
  • 2,635
  • 11
  • 42
  • 60
24
votes
5 answers

Windows 7 - Cannot remove read-only attribute

I am logged in on my admin account. When I was trying to edit a python project using PyCharm (an IDE), it told me that the folder was marked as read-only (square box). I open the folder in explorer, go to properties and uncheck read-only. I then…
Lanaru
  • 355
  • 1
  • 2
  • 8
23
votes
4 answers

Windows Explorer's file attribute column values

Is there a good resource for all of the values and definition in Windows Explorer's file attribute column?
Michael Kniskern
  • 575
  • 2
  • 6
  • 19
16
votes
6 answers

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

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
  • 325
  • 3
  • 5
  • 21
15
votes
2 answers

How to make a file non-deletable on an USB drive?

Somebody used my USB drive and upon returning it to me, I found a autorun.inf that is undeleteable. I tried changing it's file attribute which is only H (not even set as a system file) but it keeps on saying Access Denied. The USB is set on FAT32,…
MegaNairda
  • 699
  • 1
  • 9
  • 18
13
votes
4 answers

How can I compare the versions of two executables from the command line?

I have two executables (file1.exe and file2.exe). Both are the "same" file, but one is a newer version from the vendor than the other. When I open up the properties for one of them, I get the following under the Details tab: In batch, I'd like to…
user201262
13
votes
3 answers

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 | -A] [+S | -S] [+H | -H] [+O | -O] [+I | -I] [+P |…
LogicDaemon
  • 1,983
  • 2
  • 20
  • 36
12
votes
4 answers

Changing the date of an image file

I'm going through the thankless task of scanning old photos and archiving the digital copies. Is there a way to modify the date of scanned image files (typically .jpeg) to more closely match when the photo was taken rather than when the photo was…
Feckmore
  • 886
  • 2
  • 11
  • 19
11
votes
1 answer

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 hierarchical structure for project id's. This means…
Rocketman173
  • 321
  • 2
  • 7
11
votes
1 answer

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.initialized on file…
Francis
  • 121
  • 1
  • 6
1
2 3 4 5 6 7 8