Dateidatum ändern


Wo uns verschiedenste *nixe (oder neusprachlich auch *nuxe) mit einem simplen "touch meinedatei" das Dateidatum auf den aktuellen Stand bringen lassen, da versagt Windows mit Boardmitteln kläglich. Naja, fast. Es sei denn man nutzt einige undokumentierte Features, die es aus DOS-Zeiten noch bis heute geschafft haben.

Um eine Datei auf das aktuelle Datum zu bringen kann man simpel

copy /b datei+,,

nutzen. Um ein ganzes Verzeichnis auf den aktuellen Stand zu bringen kann man auch Wildcards verwenden:

copy /b *.*+,,

Die ",," am Ende sind übrigens wichtig.

Wenn man Dateien auf ein anderes Datum setzen möchte, muss man sich allerdings externer Tools bedienen. Davon gibts einige. Schön klein und noch dazu Freeware inklusive Source Code (Delphi) ist DDA von Manuel Heim.

Vote for articles fresher than 30 days!
Current karma: none, 0 vote(s) 9866 hits
Defined tags for this entry: , , ,

Comments

Display comments as (Linear | Threaded)

  1. DangerMouse says:

    ...es soll leute geben, die haben ein paar esentielle *nux-Utilities nativ für Windows kompiliert (http://unxutils.sourceforge.net/), da ist auch touch dabei und funktioniert :-)


Add Comment


Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

You can use [geshi lang=lang_name [,ln={y|n}]][/lang] tags to embed source code snippets
BBCode format allowed