You can share your Lua Scripts with everybody here.

Script to create a physical driectory

Thu Feb 17, 2011 5:42 pm

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

Thu Feb 17, 2011 6:34 pm

I think I have found out how.

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

Re: Script to create a physical driectory

Fri Feb 18, 2011 5:18 am

Yes, you are right.