View Single Post
Old 06-06-2004, 04:25 PM  
neoxed
Too much time...
 
Join Date: May 2003
Posts: 1,326
Default

Well you have to CD to the current directory, I was just giving you an idea in my previous post. Try this batch file, it works for me.
Quote:
@echo off
cd /d %SYSTEMPATH%
echo RARing Current Directory...
echo !detach 0
dir /a /b > .ioFTPD.rarlist
"C:\Program Files\WinRAR\rar.exe" a -m0 -x.ioFTPD.* !Archived.rar @.ioFTPD.rarlist
del /f .ioFTPD.rarlist
exit 0
Notes:
- Make sure you have SYSTEMPATH=%[$path] in your /etc/ioftpd.env.
- Change the path to your rar.exe if it's located elsewhere.
- I used the -m0 switch to avoid compressing the directory, it's much quicker this way.
neoxed is offline   Reply With Quote