Page 1 of 1

Script to create a physical driectory

Posted: Thu Feb 17, 2011 5:42 pm
by rboteler
Hi,

I'm trying to create a script which will create a user and directory. The users need to all be isolated, so they have one windows sub-folder per user.

Ive managed most of it fine using c_AddUser and c_AddUserDirectory. Although its creating a directory within the Wing FTP software, It doesn't create the windows sub-folder. Is this possible to do for a lua script?

This is the script im using at the moment for the directory part:
c_AddUserDirectory('testftp.com','Test User','Test User','/',true,1,1,1,1,1,1,1,1)


Any ideas are much appreciated. Thanks!

Re: Script to create a physical driectory

Posted: Thu Feb 17, 2011 6:34 pm
by rboteler
I think I have found out how.

You can do this using c_MkDIR('e:\Test User')

Re: Script to create a physical driectory

Posted: Fri Feb 18, 2011 5:18 am
by FTP
Yes, you are right.