您在Windows 10(Windows 10)上创建或修改的每个文件都附加了文件属性,告诉您(或其他人)文件的创建、修改、打开时间,甚至更多时间。不管你是迟交作业还是只是想掩盖你的踪迹——除非你改变它,否则信息将永远存在。
如果你想改变这些文件属性,你有几个选择。您可以使用新的Windows PowerShell更改或删除此数据,也可以使用Windows 文件资源管理器(Windows File Explorer)或其他第三方应用程序(如Attribute Changer )来执行此操作。以下是使用这些方法在Windows 10上更改文件属性的方法。
使用 Windows 文件资源管理器删除文件属性(Removing File Attributes Using Windows File Explorer)
如果您想更改Windows 10上的最后修改日期或其他文件属性,您首先想到的可能是使用Windows 文件资源管理器中文件的“(Windows File Explorer)属性(Properties)”菜单来执行此操作。
不幸的是,这是不可能的。您可以在文件资源管理器(File Explorer)中查看和更改某些文件属性,但不能更改上次查看、编辑或修改的日期。但是,它将删除其他个人数据,例如文档的作者姓名(author name)、媒体文件的评级,以及将文件设置为只读或隐藏。
要更改其他文件属性,例如上次修改日期、创建日期(creation date)和其他基本文件信息(file information),您需要使用本文后面列出的方法之一,特别是(article—in particular)使用Attribute Changer 应用程序(Attribute Changer app)。
- 要删除某些个人文件属性,请打开Windows 文件资源管理器(Windows File Explorer)并找到一个文件。右键单击该文件,然后按(file and press) Properties。
- 在“属性(Properties)”框中,按“详细信息(Details)”选项卡,然后单击“删除属性和个人信息(Remove Properties and Personal Information )”选项链接。
- 正如我们所提到的,您不能在此处删除或更改文件创建日期(file creation date)或其他基本文件属性。如果您的文件附加了其他个人信息,您可以创建一个删除该信息的文件副本,方法是按创建一个删除所有可能属性的副本(Create a copy with all possible properties removed)选项,然后按确定(OK)保存并执行操作。您的文件副本将出现在与原始文件相同的文件夹中,但您选择的属性已被删除。
- 要从现有文件中删除此信息,请改为选择从此(Remove the following properties from this)选项中删除以下属性,然后选择要删除的属性。按OK保存并从您的文件中删除此信息。
- 您还可以使用文件资源管理器(File Explorer)更改或设置其他文件属性,例如您的文件是隐藏的还是只读的。在“属性(Properties)”框中,切换到“常规(General)”选项卡,然后按“隐藏”(Hidden)或“只读”(Read Only)复选框启用或禁用这些设置,然后单击“确定(OK)”保存。
要更改上次修改日期和其他属性,您需要使用下面列出的另一种方法。
使用 PowerShell 更改文件属性(Change File Attributes Using The PowerShell)
Windows PowerShell中的attrib命令允许您查看和更改Windows 10文件的文件属性。它作为标准包含在内,因此您不需要任何其他软件即可使用它。
这是一种相当复杂的方法,但也相当有限。如果您想要更简单的方法来更改文件属性,请使用下面列出的属性更改器应用程序。(Attribute Changer app)
- 首先,打开一个PowerShell窗口——最好具有管理权限。为此,请右键单击Windows 开始菜单并按(Windows start menu and press) PowerShell (Admin)以启动启用了管理员权限的新PowerShell 窗口。(PowerShell window)
- 使用cd和ls命令移动文件夹和列出文件(list file)内容。进入正确的文件夹后,您可以通过键入Get-ItemProperty -Path file | Format-list -Property * -Force,用你的文件路径替换文件。(file)
- 您可以使用Set-ItemProperty命令更改文件属性,例如只读访问权限。为此,请键入Set-ItemProperty -Path file -Name IsReadOnly -Value True,将file替换为您的文件名(file name)。有关此命令的可能变量的完整列表,请参阅完整的Microsoft PowerShell 文档(Microsoft PowerShell documentation)了解更多详细信息。
更改成功将导致PowerShell不返回任何响应,但您可以通过键入(PowerShell)Get-ItemProperty -Path file | Format-list -Property * -Force来检查是否成功。Format-list -Property * -Force命令再次,或通过使用文件资源管理器(File Explorer)查看文件属性。
正如我们所提到的,这不是更改文件属性的最简单方法。诸如Attribute Changer(Attribute Changer)之类的第三方应用程序的存在使这更容易,并允许您更改上次修改日期等。
使用属性更改器更改 Windows 10 文件属性(Using Attribute Changer To Change Windows 10 File Attributes)
Attribute Changer提供了在(Attribute Changer)Windows上更改文件属性的最佳方式。除了典型的隐藏和只读属性外,Attribute Changer还允许您修改文件访问和文件创建日期(access and file creation dates)以及其他选项。
- 您需要先下载并安装 Attribute Changer(download and install Attribute Changer)。安装后,打开Windows 文件资源管理器(Windows File Explorer)并找到一个文件,然后右键单击并按(right-click and press)更改属性(Change Attributes)选项。
- 您的文件的高级属性框将打开 - 这是正在运行的Attribute Changer软件。选中(Check)(或取消选中)以启用或禁用文件属性选项卡顶部的(File Properties)隐藏文件(hidden file)或只读访问等各种系统属性。
- 如果您想更改上次修改日期或更改文件创建(file creation)数据,请按下以启用修改日期和时间戳(Modify date and time stamps)复选框。这将使您能够更改创建、修改和访问的时间戳——使用提供的选项更改这些。
- 完成更改后,按OK或Apply按钮。Attribute Changer将要求您确认更改,因此请在出现的Processing Confirmation框中按附加的OK按钮。
属性(Attribute Changer)更改器将切换到报告(Reporting)选项卡,假设没有问题,将列出更改的进度并应用您请求的更改。您可以通过右键单击文件、按Properties并在(Properties)General和Details选项卡中查看文件属性来仔细检查。
Windows 上的文件管理(File Management On Windows)
如上述方法所示,有很多方法可以更改Windows 10上的文件属性,希望这些方法能让您养成在Windows上更好地(Windows)管理文件(file management)的习惯。您可以先切换到Windows 资源管理器(Windows Explorer)的替代品,以便更轻松地对文件进行排序和管理。
如果您担心丢失文件,请不要担心 - 您也可以防止 Windows 文件被删除(prevent Windows files from being deleted)。在下面的评论部分让我们知道您的文件管理技巧。
How to Change the Last Modified Date, Creation Date, and Last Accessed Date for Files and Folders
Every file you create or modify on Windows 10 has filе attributes attached to it, telling you (or somebody еlse) when the file waѕ created, modified, opened, and possibly more. It doеsn’t matter if yoυ’re late submitting an assignment or you’re jυst tryіng to cover your tracks—the information will always be there unless you change it.
If you want to change file attributes like these, you have a few options. You can use the new Windows PowerShell to change or remove this data, or you can do it using Windows File Explorer or another third-party app like Attribute Changer. Here’s how to change file attributes on Windows 10 using these methods.
Also, if you prefer to watch, check out our YouTube video where we show you how to use the Attribute Changer utility mentioned at the end of the article:
Removing File Attributes Using Windows File Explorer
If you want to change the last modified date or other file attributes on Windows 10, your first thought may be to do so using the Properties menu for a file in Windows File Explorer.
Unfortunately, this isn’t possible. You can view certain and change certain file attributes in File Explorer, but you can’t change the last viewed, edited, or modified dates. It will remove other personal data, however, such as author name for documents, ratings for media files, as well as set a file to read-only or hidden.
To change other file attributes like your last modified date, creation date, and other essential file information, you’ll need to use one of the methods listed later in this article—in particular, using the Attribute Changer app.
- To remove certain personal file attributes, open Windows File Explorer and locate a file. Right-click the file and press Properties.
- In the Properties box, press the Details tab, then click the Remove Properties and Personal Information option link.
- As we’ve mentioned, you can’t remove or change the file creation date or other essential file attributes here. If your file has other personal information attached, you can create a copy of the file with that information removed by pressing the Create a copy with all possible properties removed option, then press OK to save and perform the action. A copy of your file will appear in the same folder as the original file with your chosen attributes removed.
- To remove this information from an existing file, select the Remove the following properties from this option instead, then choose the properties you want to remove. Press OK to save and remove this information from your file.
- You can also use File Explorer to change or set other file attributes, such as whether your files are hidden or read-only. In the Properties box, switch to the General tab, then press either the Hidden or Read Only checkboxes to enable or disable those settings, then click OK to save.
To change the last modified date and other attributes, you’ll need to use another method listed below.
Change File Attributes Using The PowerShell
The attrib command from the Windows PowerShell allows you to view and change file attributes for Windows 10 files. It’s included as standard, so you don’t need any additional software to use it.
This is a fairly complex method, but also quite limited. If you want an easier way to change file attributes, use the Attribute Changer app listed below.
- To start, open a PowerShell window—preferably with administrative privileges. To do this, right-click the Windows start menu and press PowerShell (Admin) to launch a new PowerShell window with admin privileges enabled.
- Use the cd and ls commands to move folders and list file contents. Once you’re in the correct folder, you can list all the relevant attributes for your file by typing Get-ItemProperty -Path file | Format-list -Property * -Force, replacing file with your file path.
- You can use the Set-ItemProperty command to change file attributes such as read-only access. To do this, type Set-ItemProperty -Path file -Name IsReadOnly -Value True, replacing file with your file name. For a full list of possible variables for this command, see the full Microsoft PowerShell documentation for more details.
A successful change will result in the PowerShell returning no response, but you can check whether it was successful by typing the Get-ItemProperty -Path file | Format-list -Property * -Force command again, or by viewing the file properties using File Explorer.
This isn’t the easiest method to change file attributes, as we’ve mentioned. Third-party apps like Attribute Changer exist to make this far easier, as well as allowing you to change the last modified date and more.
Using Attribute Changer To Change Windows 10 File Attributes
Attribute Changer offers the best way to change file attributes on Windows. Along with typical hidden and read-only attributes, Attribute Changer allows you to modify file access and file creation dates, as well as other options.
- An advanced properties box for your file will open—this is the Attribute Changer software in action. Check (or uncheck) to enable or disable various system attributes like hidden file or read-only access at the top of the File Properties tab.
- If you want to change the last modified date or change the file creation data, press to enable the Modify date and time stamps checkbox. This will enable you to change the created, modified, and accessed timestamps—change these using the options provided.
- Once you’ve made your changes, press the OK or Apply buttons. Attribute Changer will ask you to confirm the changes, so press the additional OK button in the Processing Confirmation box that appears.
Attribute Changer will switch to the Reporting tab and, assuming no issues, will list the progress of the changes and apply the changes you’ve requested. You can double-check this by right-clicking your file, pressing Properties, and viewing your file attributes in the General and Details tabs.
File Management On Windows
As the above methods show, there are plenty of ways to change file attributes on Windows 10 and which will, hopefully, get you into the habit of better file management on Windows. You could start by switching to a replacement for Windows Explorer to make it easier to sort and manage your files.
If you’re worried about losing your files, don’t worry—you can prevent Windows files from being deleted, too. Let us know your tips for file management in the comments section below.