File Attribute Editor



BulkFileChanger v1.71
Copyright (c) 2010 - 2020 Nir Sofer

See Also

  • NK2Edit - Edit, merge and repair the AutoComplete files (.NK2) of Microsoft Outlook.
  • FolderTimeUpdate - Update the 'Modified Time' of every folder according the latest modified time of the files stored in it

Description

Just upgraded to Windows 10 and now I cannot edit any of my pictures. The attribute on the files are set to Read Only, if I try to change it, Windows ask for Administrator permission and then appears to change the files. When I look after it is done with the files the attribute is still Read Only. Having the same problem. AttributeMagic Free! - utility to modify file dates and attributes Portable freeware utility for Windows allows you to view and modify attributes of single file or folder. You can rename file or folder and change extension (type of file). Date-time stamps that can be modified.

BulkFileChanger is a small utility that allows you to create files list from multiple folders, and then make some action on them - Modify their created/modified/accessed time, change their file attribute(Read Only, Hidden, System), run an executable with these files as parameter, and copy/cut paste into Explorer.

BulkFileChanger is a replacement for the old FileDate Changer utility.

System Requirements & Limitations

  • This utility works on any version of Windows, starting from Windows 2000 and up to Windows 10. Both 32-bit and 64-bit systems are supported.
  • If you set a date prior to 01/01/1980, Windows Explorer will not display this date, due to a limitation originally created for old FAT systems.You can still watch an old file date using other file managers like 7-zip, using BulkFileChanger utility, or by right-clicking on the file and choosing 'Properties'.

Versions History

  • Version 1.71:
    • Fixed bug: The extension column displayed incorrect value when there was a folder with '.' character and filename without extension.
  • Version 1.70:
    • Added support for document files (Word, Excel) date/time values - 'Content Created Time' and 'Last Saved Time'.
    • This feature works on Windows 7 and later.
    • If you have 64-bit system, this feature may work improperly with the 32-bit version of BulkFileChanger, so you should use the 64-bit version of BulkFileChanger.
  • Version 1.65:
    • BulkFileChanger now allows you to change and copy the date/time values stored inside media files ( .mp4 , .mov).
    • You can change/copy 3 date/time values: Item Date, Date Encoded, Date Acquired.
    • This feature works on Windows 7 and later.
    • Be aware that the effect of changing these date/time values might be different on different versions of Windows operating system.
  • Version 1.61:
    • Added /ChangeTimeAttrSingle command-line option to change the date/time/attributes of a single file/folder.
  • Version 1.60:
    • BulkFileChanger now allows you to change the date/time values stored inside EXIF data of .jpg files.
    • You can change 3 EXIF date/time values: Generated Time, Stored Time, and Modified Time.
    • The most useful field to change is the 'Generated Time' (Also known as 'Date Taken'), because this field is displayed under the 'Date' column of Windows Explorer and also manyapplications use this value as official date/time of the picture.
    • This feature works only when the date/time values already exist inside the .jpg files (BulkFileChanger cannot add new fields into the EXIF data).
  • Version 1.52:
    • Added 'Fill Current Time' button, which fills all date/time fields in the 'Change file time / attributes' window with the current date/time.
  • Version 1.51:
    • Added 'Fill Date/Time From File' button to the 'Change file time / attributes' window. When you click it, you can choose a file and then the current date/time of this file will be copied to the date/time fields of the 'Change file time / attributes' window.
  • Version 1.50:
    • Added /ChangeTimeAttr command-line option which automactially scans the specified folder and its subfolders and modifies the date/time/attributes according to the .cfg file, without displaying any user interface.
    • Added /LogFile and /LogFileAppend command-line options which write all date/time changes and errors into a log file (For using with /ChangeTimeAttr )
    • Added /cfg command-line option for loading another configuration file instead of the default one.
    • Updated the 'Attributes' column to display the following Attributes: 'I' for 'Not Content Indexed', 'E' for encrypted file, 'X' for 'No Scrub File', and 'V' for 'Integrity Attribute'.
  • Version 1.40:
    • 'Change Time / Attributes' window: The date/times values are now stored in the .cfg file.
    • 'Change Time / Attributes' window: Added 'Save Settings' button, for saving the current settings without changing any file.
    • You can now drag a file from Windows Explorer into the 'Change Time / Attributes' window andthe created/modified/accessed times of this file will be copied to the appropriate date/time settings.
  • Version 1.35:
    • Added 'Run As Administrator' option (Ctrl+F11), which allows you to easily run BulkFileChanger as administrator on Windows Vista/7/8/2008.
    • BulkFileChanger now can read the EXIF data of CR2 raw files.
  • Version 1.33:
    • Fixed bug from v1.32: BulkFileChanger stopped working on Windows 2000.
  • Version 1.32:
    • Fixed BulkFileChanger to display and handle daylight saving time properly, like Explorer on Windows 7.
  • Version 1.31:
    • BulkFileChanger now displays file dates prior to 01/01/1980. In previous versions, BulkFileChanger didn't display these dates in order to be compatible with Windows Explorer...
  • Version 1.30:
    • BulkFileChanger now displays an error message if it fails to change the date/time/attributes of one or more files.
    • Added 'Modified-Created Time Difference' column, which displays the time difference (in hours:minutes:seconds.milliseconds format) between the created time and the modified time of the file.This time difference might be interesting in some circumstances. For example: If you download a new file from the Internet, the file is created at the moment you start to download it,and its modified time is set to the time that the last byte was written to the file. This means that the created/modified time differencerepresents the duration of downloading process.
  • Version 1.25:
    • You can now specify environment variables (For example: %appdata%) in the folder path to scan ('Add By Wildcard' option).
  • Version 1.24:
    • Fixed bug: If you added files, and then removed them from the list, BulkFileChanger failed to add them again.
  • Version 1.23:
    • Fixed issue: BulkFileChanger failed to copy EXIF properties from .jpg image to the created/modified/accessed time of the file, On Windows 7 and Windows 8. The problem is actually in the GDI+ library of Windowswhich from unknown reason fails to read these EXIF properties. So BulkFileChanger now reads the EXIF data directly instead of using the GDI+ library of Windows.
  • Version 1.22:
    • Fixed issue: The properties dialog-box and other windows opened in the wrong monitor, on multi-monitors system.
    • Added 'Auto Size Columns+Headers' option, which allows you to automatically resize the columns according to the row values and column headers.
    • Added 64-bit build.
  • Version 1.21:
    • Fixed bug: BulkFileChanger failed to display the size and date/time information for a filename that begins with dot character.
  • Version 1.20:
    • Added 3 new options into 'Copy Time From': EXIF - Generated Time, EXIF - Stored Time, and EXIF - Modified Time.You can use these options to copy the date/time stored inside EXIF data of digital camera picture into the created/modified time of the file.
  • Version 1.15:
    • Added 'Date/time sequence mode' option. When it's turned on, BulkFileChanger will set a different date/time value for every file,and the 'Add' field will be used to add additional time interval for every file.
      For example, if you set the modified date/time to '07/07/2011 10:12:15' and the add value is set to 1 second,the modified time of the first file will be set the '07/07/2011 10:12:15', the second file will be set to '07/07/2011 10:12:16', the third file will be set to '07/07/2011 10:12:17', and so on...
      The order of the files is determined according to the column you click. So, if for example, you click the filename column andthen use the 'Date/time sequence mode', the date/time values will be set according to the filename alphabetical order.
  • Version 1.10:
    • Added the option to copy from one date/time value to another.(For example, you can copy the modified time into the created time or thecreated time into the modified time and accessed time)
  • Version 1.05:
    • BulkFileChanger now also allows you to change the date/time of a folder.You can add a folder by dragging it from Explorer or byadding it with 'Add By Wildcard' feature and 'Add Folders' option turned on.
    • Added 'File Extension' column.
    • Added 'Mark Odd/Even Rows' option, under the View menu. When it's turned on, the odd and even rows are displayed in different color, to make it easier to read a single line.
  • Version 1.02:
    • Added support for temporary file attribute.
  • Version 1.01:
    • Fixed bug: When the find dialog-box was in focus, pressing the delete key removed the file from the main window.
  • Version 1.00: First release.

Using BulkFileChanger

FileBulkFileChanger doesn't require any installation process or additional dll files.In order to start using it, simply run the executable file - BulkFileChanger.exe

After running BulkFileChanger, you can add files into the list by using one of the following methods:

  • Copy and Paste: Simply copy files from Explorer window (Ctrl+C) and then paste them into BulkFileChanger(Ctrl+V). You can also copy files from other utilities of NirSoft, like SearchMyFiles and HashMyFiles.
  • Drag From Explorer: You can add files by dragging them from Explorer window into the main window of BulkFileChanger.
  • 'Add Files' option (F2):Add files from 'open file' dialog-box.
  • 'Add By Wildcard' option (F3):Add multiple files by specifying wildcard, path, and subfolder depth to scan. (For Example: c:temp*.txt)
You can also remove files from the list by using 'Remove Selected Files' option (Del key) or clear the entire files list by using 'Clear Files List' (Ctrl+L)

After you added the desired files, you can select some of them or all of them (Ctrl+A) and then use one of the following options:

  • Change Time / Attributes (F6): Allows you to modify the modified/created/accessed time of the selected files.You set them to specific time/date values or you can add/subtract days/hours/minutes/seconds from the existing file time.You can also modify the attributes of the files, like Read-Only, Hidden, and so on.
  • Execute Command On Selected Files (F7): Allows you to run any executable with the selected files as command-line parameter.For example: if you specify 'c:tempMyProgram.exe '%1' in the execute command string, BulkFileChanger willrun MyProgram.exe for every file in the list, and the '%1' will be replaced with the full path filename.
  • Explorer Copy/Cut: You can use the copy or cut option to copy/move the selected files into anotherfolder window of Explorer.
  • Export Selected Items: You can export the files list into html/text/html/csv file.

Command-Line Options

<Subfolders Depth> - Specifies the depth of subfolders to scan. If you specify 0, BulkFileChanger will not scan the subfolders.
<File/Folder Mode> - Specifies whether to change the date/time/attributes of files, folders or both:
0 = Both Files and folders
1 = Files only
2 = Folders only

Here's a few examples:
BulkFileChanger.exe /ChangeTimeAttr 'C:TempMyFiles' '*' 5 0
BulkFileChanger.exe /ChangeTimeAttr 'C:TempMyFiles' 'a*.csv' 0 1
BulkFileChanger.exe /cfg 'c:tempbfc12.cfg' /ChangeTimeAttr 'C:Temp' '*' 10 0
BulkFileChanger.exe /LogFile 'c:templog1.txt' /ChangeTimeAttr 'C:MyFiles' '*' 2 0

Warning !!
This command-line option is very powerful, so you should use it carefully. It's recommended to test it with a single small folder to check that it works as expected before running it on a full drive...

/LogFile <Filename>Specifies a log file to write all actions and errors while running the /ChangeTimeAttr command.
In order to translate BulkFileChanger to other language, follow the instructions below:
  1. Run BulkFileChanger with /savelangfile parameter:
    BulkFileChanger.exe /savelangfile
    A file named BulkFileChanger_lng.ini will be created in the folder of BulkFileChanger utility.
  2. Open the created language file in Notepad or in any other text editor.
  3. Translate all string entries to the desired language.Optionally, you can also add your name and/or a link to your Web site. (TranslatorName and TranslatorURL values) If you add this information, it'll be used in the 'About' window.
  4. After you finish the translation, Run BulkFileChanger, and all translated strings will be loaded from the language file.
    If you want to run BulkFileChanger without the translation, simply rename the language file, or move it to another folder.

License

This utility is released as freeware. You are allowed to freely distribute this utility via floppy disk, CD-ROM, Internet, or in any other way, as long as you don't charge anything for this. If you distribute this utility, you must include all files inthe distribution package, without any modification !

Disclaimer

The software is provided 'AS IS' without any warranty, either expressed or implied,including, but not limited to, the implied warranties of merchantability and fitnessfor a particular purpose. The author will not be liable for any special, incidental,consequential or indirect damages due to loss of data or any other reason.

Feedback

If you have any problem, suggestion, comment, or you found a bug in my utility, you can send a message to nirsofer@yahoo.com
Download BulkFileChanger (in Zip file)
Download BulkFileChanger 64-bit (in Zip file)
Check Download MD5/SHA1/SHA256 Hashes

Mp3 File Attribute Editor

BulkFileChanger is also available in other languages. In order to change the language of BulkFileChanger, download the appropriate language zip file, extract the 'bulkfilechanger_lng.ini', and put it in the same folder that you Installed BulkFileChanger utility.

LanguageTranslated ByDateVersion
Arabic Shanaab26/01/20151.33
Brazilian PortugueseSiegfried Janke22/10/20191.70
CroatianLomac20/11/20171.51
CzechMIC (mic@volny.cz)20/10/20181.51
DutchJan Verheijen06/04/20201.71
FrenchSkorpix38/Largo30/09/20171.51
Geman«Latino» auf WinTotal.de23/10/20191.70
German«Latino» auf WinTotal.de06/04/20201.71
Greekgeogeo.gr05/06/20191.61
GreekDimitri Delopoulos01/12/20171.51
Hebrewיצחק חסון11/08/20181.51
Italianfabpolli06/10/20161.40
JapaneseU.G05/09/20191.65
Korean SJ Rhi19/01/20181.51
LatvianNizaury02/02/20121.20
PolishHightower24/10/20191.70
PolishTraxter06/08/20111.02
RomanianJaff (Oprea Nicolae)30/12/20181.52
RussianDmitry Yerokhin06/04/20201.71
Simplified ChineseSae18/08/20161.40
Simplified ChineseJam27/12/20171.51
SerbianOззии21/06/20101.01
SlovakFrantišek Fico13/04/20201.71
Spanishaaronyvan19/02/20161.35
Spanishjmpiquero + aaronyvan18/12/20171.51
SwedishGöran Helsingborg11/07/20191.61
Traditional ChineseDanfong Hsieh22/10/20191.70
TurkishCemil Kaynar23/10/20161.40
Valencianvjatv11/05/20101.01
File attribute editor

File attributes are a type of meta-data that describe and may modify how files and/or directories in a filesystem behave. Typical file attributes may, for example, indicate or specify whether a file is visible, modifiable, compressed, or encrypted. The availability of most file attributes depends on support by the underlying filesystem (such as FAT, NTFS, Ext4) where attribute data must be stored along with other control structures. Each attribute can have one of two states: set and cleared. Attributes are considered distinct from other metadata, such as dates and times, filename extensions or file system permissions. In addition to files, folders, volumes and other file system objects may have attributes.

DOS and Windows[edit]

Traditionally, in DOS and Microsoft Windows, files and folders accepted four attributes:[1][2][3]

  • Archive (A): When set, it indicates that the hosting file has changed since the last backup operation. Windows' file system sets this attribute on any file that has changed. Backup software then has the duty of clearing it upon a successful full or incremental backup (not a differential one).
  • Hidden (H): When set, indicates that the hosting file is hidden. MS-DOS commands like dir and Windows apps like File Explorer do not show hidden files by default, unless asked to do so.[4]
  • System (S): When set, indicates that the hosting file is a critical system file that is necessary for the computer to operate properly. MS-DOS and Microsoft Windows use it to mark important system files. MS-DOS commands like dir and Windows apps like File Explorer do not show system files by default even when hidden files are shown, unless asked to do so.
  • Read-only (R): When set, indicates that a file should not be altered. Upon opening the file, file system API usually does not grant write permission to the requesting application, unless the application explicitly requests it. Read-only attributes on folders are usually ignored, being used for another purpose.[5][6]

As new versions of Windows came out, Microsoft has added to the inventory of available attributes on the NTFS file system,[7] including but not limited to:[8]

  • Compressed (C): When set, Windows compresses the hosting file upon storage. For more information, see NTFS § File compression.
  • Encrypted (E): When set, Windows encrypts the hosting file upon storage to prevent unauthorized access. For more information, see NTFS § Encryption.
  • Not Content-Indexed (I): When set, Indexing Service or Windows Search do not include the hosting file in their indexing operation.

Other attributes that are displayed in the 'Attributes' column of Windows Explorer[7] include:

  • Directory (D): The entry is a subdirectory, containing file and directory entries of its own.
  • Reparse Point (L): The file or directory has an associated re-parse point, or is a symbolic link.
  • Not Indexed (N): The file is not indexed on the host device.
  • Offline (O): The file data is physically moved to offline storage (Remote Storage).
  • Sparse (P): The file is a sparse file, i.e., its contents are partially empty and non-contiguous.
  • Temporary (T): The file is used for temporary storage.

File Attributes List

In DOS, OS/2 and Windows, the attrib command in cmd.exe and command.com can be used to change and display the four traditional file attributes.[3][9] File Explorer in Windows can show the seven mentioned attributes but cannot set or clear the System attribute.[5]Windows PowerShell, which has become a component of Windows 7 and later, features two commands that can read and write attributes: Get-ItemProperty and Set-ItemProperty.[10] To change an attribute on a file on Windows NT, the user must have appropriate file system permissions known as Write Attributes and Write Extended Attributes.[11]

Unix and POSIX[edit]

Windows File Attribute Editor

In Unix and Unix-like systems, including POSIX-conforming systems, each file has a 'mode' containing 9 bit flags controlling read, write and execute permission for each of the file's owner, group and all other users (see File system permissions §Traditional Unix permissions for more details) plus the setuid and setgid bit flags and a 'sticky' bit flag.The mode also specifies the file type (regular file, directory, or some other special kind).

4.4BSD and derivatives[edit]

In 4.4BSD and 4.4BSD-Lite, files and directories (folders) accepted four attributes that could be set by the owner of the file or the superuser (the 'User' attributes) and two attributes that could only be set by the superuser (the 'System' attributes):[12]

  • (User) No-dump: When set, it indicates that the file or directory should not be saved during a backup operation.
  • (User and System) Immutable: When set, indicates that the file or directory should not be altered. Attempts to open the file for writing, create a file within the directory, remove a file from the directory, rename a file within the directory, rename the file or directory, or remove the file or directory will fail with a permissions error.
  • (User and System) Append-only: When set, indicates that the file should only be appended to.
  • (User) Opaque: When set on a directory, indicates that the directory is opaque when viewed through a union stack.

FreeBSD added some additional attributes,[13] also supported by DragonFly BSD:[14]

  • (User and System) No-unlink: When set, indicates that the file or directory should not be renamed or removed. Attempts to rename or remove the file or directory will fail with a permissions error.

FreeBSD also supports:[13]

  • (System) No-archive: When set, indicates that the file or directory should not be archived.
  • (System) Snapshot: When set, indicates that the file or directory is a snapshot file. This attribute is maintained by the system, and cannot be set, even by the super-user.

whereas DragonFly BSD supports:[14]

  • (User and System) No-history: When set, indicates that history should not be retained for the file or directory.
  • (User) Swapcache: When set, indicates that clean filesystem data for the file, or for the directory and everything underneath the directory, should be cached in swap space on a solid-state drive.
  • (System) Swapcache: When set, indicates that clean filesystem data for the file, or for the directory and everything underneath the directory, should not be cached in swap space on a solid-state drive.
  • (System) Archived: When set, indicates that the file or directory may be archived.

NetBSD added another attribute,[15] also supported by OpenBSD:[16]

  • (System) Archived: When set, indicates that the file or directory is archived.

macOS added three attributes:

Mp3 file attribute editor
  • (User) Hidden: When set, indicates that the file or directory should not, by default, be displayed in the GUI; ls will display it, however.[17]
  • (System) Restricted: When set, indicates that the file or directory will be protected by System Integrity Protection
  • (User and System) Compressed: Read-only attribute for files compressed using HFS+ Compression

In these systems, the chflags and ls commands can be used to change and display file attributes. To change a 'user' attribute on a file in 4.4BSD-derived operating systems, the user must be the owner of the file or the superuser; to change a 'system' attribute, the user must be the superuser.

Linux[edit]

The Linux operating system can support a wide range of file attributes that can be listed by the lsattr command and modified, where possible, by the chattr command.Programs can examine and alter attributes using ioctl operations.[18]

Many Linux file systems support only a limited set of attributes, and none of them support every attribute that chattr can change. File systems that support at least some attributes include ext4, XFS and btrfs.

List
Common file attributes supported by many common Linux file systems
Attributelsattr flagchattr optionSemantics and rationale
No atime updatesA+A,-Aatime record is not modified when file is read/accessed.
Append-onlya+a,-a

Writing to file only allowed in append mode.

Immutablei+i,-i

Prevents any change to file's contents or metadata: file/directory cannot be written to, deleted, renamed, or hard-linked.

No dumpd+d,-dFile is skipped by the dump program
Secure deletions+s,-sRequests that, when deleted, all file data blocks are filled with zeroes.
Synchronous updatesS+S,-SChanges are written synchronously to the underlying filesystem storage medium; equivalent to 'sync' mount option for affected files.

See also[edit]

References[edit]

  1. ^'Definition of: file attribute'. PC Magazine. Ziff Davis. Retrieved 14 October 2020.
  2. ^'File attributes'. Computer Hope. Retrieved 2 December 2012.
  3. ^ ab'In Windows, what are file attributes, and how can I change them?'. Knowledge Base. Indiana University. 11 October 2011. Retrieved 2 December 2012.
  4. ^'What is a hidden file?'. Windows 7 Help. Microsoft. Retrieved 2 December 2012.
  5. ^ ab'You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7'. Microsoft Support. Microsoft. 31 May 2012. Retrieved 2 December 2012.
  6. ^'Why is the readonly property on folders so strange?'.
  7. ^ ab'File Attribute Constants'. MSDN. Microsoft. Retrieved 17 July 2018.
  8. ^'HOW TO: Use the File Attribute Management Script (Fileattributes.pl) in Windows 2000'. Microsoft support. Microsoft. Retrieved 2 December 2012.
  9. ^'Definition of: DOS Attrib'. PC Magazine. Ziff Davis. Retrieved 2 December 2012.
  10. ^'Use a PowerShell Cmdlet to Work with File Attributes'. Hey, Scripting Guy! Blog. Microsoft. 26 January 2011. Retrieved 3 December 2012.
  11. ^'How to set, view, change, or remove special permissions for files and folders in Windows XP'. Microsoft Support. Microsoft. 7 May 2007. Retrieved 2 December 2012.
  12. ^chflags(2) – BSD System Calls Manual
  13. ^ abchflags(2) – FreeBSD System Calls Manual
  14. ^ abchflags(2) – DragonFly BSD System Calls and Error Numbers Manual
  15. ^chflags(2) – NetBSD System Calls Manual
  16. ^chflags(2) – OpenBSD System Calls Manual
  17. ^chflags(2) – Darwin and macOS System Calls Manual
  18. ^ioctl_iflags(2) – Linux Programmer's Manual – System Calls

External links[edit]

  • Definition of: DOS Attrib on PC Magazine
  • Hidden files in Unix-like operating systems at the Wayback Machine (archived October 17, 2007)
Retrieved from 'https://en.wikipedia.org/w/index.php?title=File_attribute&oldid=983516350'