Solved Batch script that compress the files for previuos month

March 11, 2015 at 09:32:43
Specs: Windows 7
Hi all,
I need to create a batch script that will run on a specific date.
It will compress the files for the previous month.
Note: what i need is, this will compress the file from 1 to 30/31st of the month and generate the compressed folder on 15th of next month.
The code that will run on every 15th of the month and compress the files before this month.

See More: Batch script that compress the files for previuos month

Report •


#1
March 12, 2015 at 04:45:30
✔ Best Answer
Post the output of this script.

:: lastmo.bat 2015-03-12 12:02:13.26
@echo off > NEWFILE & setLocal enableDELAYedeXpansioN

:main
for /f "tokens=* delims= " %%a in ('dir/b NEWFILE') do (
echo.%%~Ta %%a
)
goto :eof
::====== script ends here =================

=====================

M2 Get custom script or take private lessons


Report •
Related Solutions


Ask Question