OT: Setting Modification Date From Commandline
Hi Framers, I am looking for a command line program that will allow me to set the modification date and time of a file. Thanks for any suggestions. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com ___ You are currently subscribed to Framers as [EMAIL PROTECTED] Send list messages to [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] or visit http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com Send administrative questions to [EMAIL PROTECTED] Visit http://www.frameusers.com/ for more resources and info.
OT: Setting Modification Date From Commandline
Hi Framers, I am looking for a command line program that will allow me to set the modification date and time of a file. Thanks for any suggestions. Rick Quatro Carmen Publishing 585-659-8267 www.frameexpert.com
Setting Modification Date From Commandline
Rick Quatro wrote: > I am looking for a command line program that will allow me to set > the modification date and time of a file. Rick: A Google search for something like "file timestamp windows" will find hundreds of freeware Windows utilities for setting a file's timestamp arbitrarily... But if you just want to set a file's timestamp to the current time -- like the Unix "touch" command -- you can do it from the DOS command line with: copy /b FILENAME.EXT +,, Microsoft suggests this batch file to make it even easier: @echo off if %1.==. goto end if not exist %1 goto end copy /b %1 +,, > nul echo %1 touched. :end Save the file somewhere in your path as touch.bat, then just type: touch FILENAME.EXT to set FILENAME.EXT's timestamp. -Andrew