Tanggal dan Waktu dijadikan NamaFile secara Incremential

5 11 2008

Kmrn ada tugas dr bos tuk bikin incremential backup filename make ekstensi .zip di DOS/WIn32 trus bingung bukan kepalang. Buka om Google trus nemu source-code kecil dibwh ini:
REM Create sub directory called \yymmdd_hhmmss
REM where yymmdd_hhmmss is a date_time stamp like 030902_134200
set hh=%time:~0,2%
REM Since there is no leading zero for times before 10 am, have to put in
REM a zero when this is run before 10 am.
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~12,2%%date:~4,2%%date:~7,2%_%hh%%time:~3,2%%time:~6,2%
md h:\%yymmdd_hhmmss%

Kreatiflah dan berfikirlah sendr tuk mengembangnya, jgn anggap susah jika Anda memang perlu dan mau tuk belajar!
Sumber