PDA

View Full Version : [Fixed] on_release_complete


stefanoskj
10-11-2004, 10:57 AM
i used the command :

on_release_complete=md J:\%DIRNAME% | start c:\ioFTPD\scripts\winrar\winrar.exe e %FIRSTFILE% *.* J:\%DIRNAME%


but i want :
1) unrar in the same path into I:
Es : folder in /ftp/test/ must be unrar in J:\ftp\test not in J:\test
2) delette all file

It's possible ?

thx for all


stefano

Harm
10-23-2004, 08:03 AM
Have you tried:
on_release_complete=md I:\ftp\%DIRNAME% | start C:\ioFTPD\scripts\HideRun.exe C:\ioFTPD\scripts\UnRAR.exe e %FIRSTFILE% *.* I:\ftp\%DIRNAME% | del /s /q %DIR%\*

stefanoskj
11-06-2004, 09:22 AM
for deletting file is ok

thanks harm



ciao stefano

durulink
12-18-2004, 08:35 AM
Originally posted by Harm
Have you tried:
on_release_complete=md I:\ftp\%DIRNAME% | start C:\ioFTPD\scripts\HideRun.exe C:\ioFTPD\scripts\UnRAR.exe e %FIRSTFILE% *.* I:\ftp\%DIRNAME% | del /s /q %DIR%\*

How do i prevent rar files from deleting before unrar complete?

Harm
12-19-2004, 01:23 PM
Could you explain what happens to you exactly ?

durulink
12-19-2004, 02:57 PM
first
on_release_complete=start d:\ioFTPD\scripts\HideRun.exe unrar.exe e %FIRSTFILE% *.* %DIR%
on_release_complete=start d:\ioFTPD\scripts\HideRun.exe unrar.exe x [-y] %FIRSTFILE% %DIR%
second
on_release_complete=start d:\ioFTPD\scripts\HideRun.exe unrar.exe e %FIRSTFILE% *.* %DIR% | del /s /q %DIR%\*.r??
on_release_complete=start d:\ioFTPD\scripts\HideRun.exe unrar.exe x [-y] %FIRSTFILE% %DIR% | del /s /q %DIR%\*.r??

first setting, extract correctly.
but second, dont extract with deleting files *.r??

in my opinion,
during unrar somethings, del command delete those files.
so, unrar failed. :(:(

i think method of solving the problem is delay deleting files while UNRAR extract rars.
or after extracting completely, delete others files by unRAR options if it had such a options...

sorry, poor english.

Harm
12-19-2004, 03:46 PM
Or create a .bat file that extracts the files sent as arguments and *then* delete the rars.

Something like:
on_release_complete=start d:\ioFTPD\scripts\HideRun.exe extract.bat %FIRSTFILE% %DIR%
unrar.exe x -y %1% %2%
del /s /q %2%\*.r??

durulink
12-19-2004, 04:26 PM
thank you very much. (--)(__)

but, not %1%, %2%
unrar.exe x -y %1 %2
del /s /q %2\*.r??