Windows equivalent of the Linux command 'touch'?
Problem
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 well Edit: there is already a page for applications as pointed out by CheapScotsman here. If anyone knows how I can do this via C++, C#, WSH or something similar, well and good, else I would think everything else is covered in the linked question.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Windows equivalent of the Linux command 'touch'?
If you want to touch the date stamp of a file using windows, use the following command at the command prompt: (where is your file's name). The is a special flag to telling it to simply update the date/time on the file: * Changing the time and date of a file If you want to assign the current time and date to a file without modifying the file, use the following syntax: The commas indicate the omission of the Destination parameter. Edit based on comments by Lumi and Justin: put this in a batch fil…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix