🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.freeware
Article #358

Re: Program to modify file Date and Time in Windows?

#358
From: Klaatu
Date: Mon, 18 Sep 2006 19:01
21 lines
1951 bytes
On Mon, 18 Sep 2006 10:42:27 GMT, Phred posted to alt.comp.freeware:

> So, question is, what can you recommend that will do this sort of job
> under Windows 9x and XP?  It's not such a big deal that I want to
> spend anything more than a trivial amount of money on it, at most. :)

A simple one-line AutoIt script (http://www.autoitscript.com) will do it:

;-------------begin---------------
FileSetTime($CmdLine[1], @YEAR & @MON & @MDAY & @HOUR & @MIN & @SEC, 1)
;--------------end----------------

Save it as touch.au3 and compile it into touch.exe and you have your
program. Of course, there's no error checking or anything like that, and it
only changes the created date (2 more lines would fix that easily enough),
but it does the job.

HTH

-- 
... I am Homer of Borg. You will be assim... ooooh donuts!
Technical Details
Message-ID: <Xns98427A6869A1klaatunospaminvalid@127.0.0.1>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!nx01.iad01.newshosting.com!newshosting.com!post02.iad01!post01.iad01!not-for-mail
References: <4n7bfkF921q5U1@individual.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 112049,d8f47b76b064cc2d
X-Google-Thread: 108c83,d8f47b76b064cc2d
X-Google-Attributes: gid112049,gid108c83,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!nx01.iad01.newshosting.com!newshosting.com!post02.iad01!post01.iad01!not-for-mail
Newsgroups: alt.comp.freeware,aus.computers
Subject: Re: Program to modify file Date and Time in Windows?
From: Klaatu <klaatu@nospam.invalid>
References: <4n7bfkF921q5U1@individual.net>
Organization: A little less every day!
Message-ID: <Xns98427A6869A1klaatunospaminvalid@127.0.0.1>
User-Agent: Xnews
X-Face: "*4TQEWDl_e1\+\A$>04o`TR*>G^B(PT\pN%uvAosT28o\KmXuo]FCxndjXgV,}y<o*B]5'WmZJKChD68?8M'k2Q>%G$/Og~tSyAe0s}+=(#W^nqx;iv^j2ppLwI1vpX=my%PA%e#U3KEW!F1-y.}gS+{}S!/}*9:d,@CvZe6b?T>e.2@kyhJhO_<wql2S&}E^r_J}hS>|>ON]Es"sja/VKp^%eAk^`?o;{lS
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Date: Mon, 18 Sep 2006 19:01:59 GMT
Lines: 21
X-Complaints-To: abuse@newshosting.com