View Single Post
06-11-05, 02:39 PM   #2
Nathrakh
A Defias Bandit
Join Date: Jun 2005
Posts: 2
Using Mook's as an example, I made one for 7-zip

backup.bat
Code:
@echo off
for /f "tokens=1,2" %%u in ('date /t') do set date=%%v
for /f "tokens=1" %%u in ('time /t') do set time=%%u
if "%time:~1,1%"==":" set time=0%time%
set folder=%date:~6,4%-%date:~0,2%-%date:~3,2%_%time:~0,2%%time:~3,2%
7za a "C:\Program Files\World of Warcraft\Backups\%folder%.zip" @listfile.txt
listfile.txt
Code:
"C:\Program Files\World of Warcraft\Interface\"
"C:\Progrtam Files\World of Warcraft\Logs\"
"C:\Program Files\World of Warcraft\Screenshots\"
"C:\Program Files\World of Warcraft\WDB\"
"C:\Program Files\World of Warcraft\WTF\"
edit: some times were giving me spaces in the filename, so I found a different method to get the time and date (props to the original author)

Last edited by Nathrakh : 06-14-05 at 01:55 AM.
  Reply With Quote