Script to create a physical driectory

You can share your Lua Scripts with everybody here.

Script to create a physical driectory

Postby rboteler » 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!
rboteler
 
posts 7
 
joined Thu Jan 27, 2011 10:12 am

Re: Script to create a physical driectory

Postby rboteler » Thu Feb 17, 2011 6:34 pm

I think I have found out how.

You can do this using c_MkDIR('e:\Test User')
rboteler
 
posts 7
 
joined Thu Jan 27, 2011 10:12 am

Re: Script to create a physical driectory

Postby FTP » Fri Feb 18, 2011 5:18 am

Yes, you are right.
FTP
Site Admin
 
posts 1232
 
joined Tue Sep 29, 2009 6:09 am


Return to Lua scripts

Who is online

Users browsing this forum: No registered users and 2 guests