Create Date Based Directory

this bat file is use full when u r someone like me ( an unorganize person :D)

open notepad and type this code :

@echo off
cls
echo *************************
echo *    Cipta Direktori    *
echo *************************
Set mm=%DATE:~4,2%
Set dd=%DATE:~7,2%
Set yyyy=%DATE:~10,4%
Set masa=%TIME:~0,2%
set masa2=%TIME:~3,2%
mkdir %yyyy%-%mm%-%dd%-%masa%.%masa2%
echo ….. Berjaya ……
echo [ Nama dir: %yyyy%-%mm%-%dd%-%masa%.%masa2% ]
pause

save as “ciptadir.bat

double click it to make a directory based on current date.

testes on windows xp & windows Server 2003

–by apit

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s