mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2006
Posts: 43
M
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Sep 2006
Posts: 43
searched but didnot find does anyone know is there a script that will zip all my logs per month and put in say mirc/ziplog folder?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You will need a command line compression program. Personally, I use pkzip.exe because it's small and can be stored right in the mIRC folder. However, some of the larger Windows apps (such as WinRAR) have command line methods as well.

Check the documentation for whatever you want to use for what the command line is for compressing something into a folder.

Then, just use a timer:

Code:
on *:start: {
  .timerZipLogs 0:01 0 86400 ZipLogs
}

alias ZipLogs {
  if ($date(dd == 01)) {
    compress commands here
    probably also use a /remove command to delete the logs afterwards if you want to
  }
}



Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard