PDA

View Full Version : need help learning to use ioftpd script methods


mr_F_2
01-19-2004, 11:28 PM
hello,

i coded a sfv/zip script for raiden and got really fed up with the coder of that app, so now i'm a io guy :D Anyway, I was just looking at a bunch of scripts and don't quite understand. Coding scripts for raiden i'm used to a file variable so I can do specific checks on a file

ie:
sfv.exe C:/path/and/filename.file

so how does interaction work in ioftpd? i've noticed none of the zip scripts are called with a directory or filename parameter, so how do they know what to check? or even, what directory to check.

any help would be much appreciated.

-mr_F

neoxed
01-19-2004, 11:35 PM
Most zipscipts use the OnUploadComplete event, which is triggered when a file has completed uploading.

There are 3 args passed to it, Real-Path CRC-of-File VirtualPath.

INI Entry:
OnUploadComplete = EXEC ..\scripts\blah.exe

Args:
blah.exe "c:\site\freeware\setup.exe" 1A2B3C4D "/freeware/setup.exe"

Btw, from what i've heard your zs for raiden was the best available. ;)

mr_F_2
01-19-2004, 11:37 PM
thanks for the compliment :)

i'm gonna get to work on this as soon as I have some time. hopefully I can think of some other useful scripts for ioFTPd in due time. it's looking very very nice so far. :)

wooolF[RM]
01-19-2004, 11:43 PM
it does indeed :) I really love this FTPd :)
And welcome to the club :D

zpr
01-20-2004, 12:00 PM
welcome mr_F! and good luck with your scripts!

odd
01-20-2004, 01:32 PM
Never enough with scripts for me. keep em comming :)