View Single Post
Old 03-14-2003, 11:24 PM  
terencehe
Junior Member
 
Join Date: Mar 2003
Posts: 22
Default [REQ]develope dupecheck and search use mysql for ioftpd

i want dev a module for ioftpd:dupecheck and search use mysql

and i write a file for test.
Code:
#include "stdafx.h"
#include "stdio.h"

int main(int argc, char* argv[])
{
	FILE *tempfile;
	tempfile=fopen("c:\\dupe.tmp","w+");
	for (int i=0;i<argc;i++)
		fprintf(tempfile,"%s\n",argv[i]);
	fclose(tempfile);
	return 0;
}
and add ioftpd.ini
Code:
[Pre]
stor = c:\ioftpd\system\dupecheck.exe
when i upload a file test.file in ioftpd
the argv like this in dupe.tmp
c:\ioftpd\system\dupecheck.exe
STOR
test.file

------------------------
[REQ] can ioftpd send parameters like this:
c:\ioftpd\system\dupecheck.exe
STOR
/VFSdirectory/test.file

or how can get the file test.file in ioftpd'VFS directory?
terencehe is offline   Reply With Quote