dos batch or wsh to output the date 30days ago

Soldato
Joined
17 Jul 2008
Posts
7,439
I have a batch file that takes a date as a parameter,

it deleted all files before that date when run,

it is used to clear out log files,

if todays date is 09/nov/2011 it simply needs to output 09-10-2011

(does not have to be exactly 30 days can be just the previous month)

I cannot install or download anything so am unable to use all the simple reskit utils,

ta for looking and any suggestions...
 
Back
Top Bottom