Script to create a physical driectory

You can share your Lua Scripts with everybody here.
Post Reply
rboteler
Posts: 7
Joined: Thu Jan 27, 2011 10:12 am

Script to create a physical driectory

Post 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!
rboteler
Posts: 7
Joined: Thu Jan 27, 2011 10:12 am

Re: Script to create a physical driectory

Post by rboteler »

I think I have found out how.

You can do this using c_MkDIR('e:\Test User')
FTP
Site Admin
Posts: 2104
Joined: Tue Sep 29, 2009 6:09 am

Re: Script to create a physical driectory

Post by FTP »

Yes, you are right.
Post Reply