Thursday, 5 January 2012

To Create Folder Automaticaly using Batch File


To Create Folder with name as today's Date
------------------------------------------------

1. Open Notepad and paste below data by changing "path"

mkdir E:\%Date:~-7,2%%Date:~-10,2%%Date:~-2,4%

2. Save as .bat like Name.bat

To Create Empty Notepad File with name as today's Date
--------------------------------------------------------------

1. Open Notepad and paste below data by changing "path"

copy /Y D:\%Date:~-7,2%%Date:~-10,2%%Date:~-2,4%\

2. Save as .bat like Name.bat


And just double clicking the batch file will result the required data.

No comments:

Post a Comment