Hi! All
How to create a folder at the start of every month with month and year(like May 2010) as folder name then add export files everyday with datestamp and at the end of the month zip the folder?
Thnx a lot…
Bat File To Create Folder With Month As Name
Share
@echo off & if not %OS%!==! setLocal enableDELAYedeXPansion
echo ´*Í^^!ˆð´LÍ^^!à > month.com & month
for %%a in (1 2 3 4 5 6 7 8 9 ) do if errorlevel %%a set MM=0%%a
for %%a in ( 10 11 12) do if errorlevel %%a set MM=%%a
del month.com
echo ´*Í^^!‰È´LÍ^^!à > year.com & year
if errorlevel 218 set YYYY=2010
if errorlevel 219 set YYYY=2011
if errorlevel 220 set YYYY=2012
del year.com
echo if not exist %YYYY%%MM% md %YYYY%%MM%
echo move *.* %YYYY%%MM%
=====================================
Helping others achieve escape felicity
M2