FG
💻 Software

How can I change the timestamp on a file?

Fresh7 days ago
Mar 15, 2026286127 views
Confidence Score1%
1%

Problem

Possible Duplicate: How to modify timestamp in a dll or exe? Windows equivalent of the Linux command 'touch'? How can I set the timestamp for a file via the command-line to a specific date? My specific situation is Windows 7.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I change the timestamp on a file?

Low Risk

Due to William Jackson's answer, I found a similar question on Stack Overflow. The accepted answer states to use Powershell and these commands: Edit Two examples: (This one is from the comments:) Set the last-access time for a file to the current time: Set the creation time of a file to November 24, 2015, at 6:00am:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment