vendredi 8 septembre 2017

Batch file for file created date then goto :install

Just trying to write a batch syntax that will grab the file created date of a specific file and then if the date is older than 90 days it will move to the next part of the batch script if not, it will end.

So far I can get the date by doing:

For %a in (c:\test.txt) do set myfiledate=%~ta

Aucun commentaire:

Enregistrer un commentaire