Discussion Locked

Can I Automate my Task?

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello!
I?m running an application which creates daily Log files (*.txt format). I always have to empty the folder by removing the old files (the current ones remain in the folder because by removing them the applications services needs to be stopped which not required to do so). to a different location and then I usually back up all the *.txt log files in a Zip file. I?m looking for a method that helps me automate this task when I?m not around, can you help me?

Thanks,

Manuel

3 replies

by r. a. caluste

create a batchfile:

backup.bat

@echo off
pkzip -ex -m d:\dest\file.zip d:\source\*.txt

from command line enter this

at 10:00 /every:M,T,W,Th,F d:\folder\backup.bat

notes:

pkzip -m switch moves the files into a zip file, it will skip files that are in use. the at command will schedule the execution of the batch file 10 am from Monday to Friday

hope this helps.

by m.graft

Thank you for the effort, but unfortuantly the Zipping command seems not to work?

Manuel Graft

This discussion is closed to new replies.