Page 1 of 1
SOLVED - how to create a folder on a server using ftp?
Posted: Wed Jul 27, 2011 4:47 pm
by admin12
I need to auto-create a file folder on a file server (already set up) based on the user's first and last name.
How would I do this?
I have already read through the ftp tutorial and got it working - but I need to create the folder first and then upload files to it.
How would I do this?
Mike
Re: how to create a folder on a server using ftp?
Posted: Wed Jul 27, 2011 5:34 pm
by karmacomposer
It's me, but as my original username. Admin12 was assigned to me by runrev for the summer academy.
To add, I have the two fields set up - fldFirstName and fldLastName,
I know that the two together woulkd be:
put the text of field "fldLastName" &space & the text of field "fldFirstName" into FullName
However, how do I now create a FOLDER (the name of which will be FullName) on my file server using ftp?
Mike
Re: how to create a folder on a server using ftp?
Posted: Wed Jul 27, 2011 7:00 pm
by admin12
anyone?? I really need help with this to make the database work.
Thanks in advance.
Mike
Re: how to create a folder on a server using ftp?
Posted: Wed Jul 27, 2011 7:47 pm
by SparkOut
Assuming you are using libURL for the ftp commands you should be able to
Code: Select all
put "MKD /ftproot/folderpath/" & FullName into tFtpCmd
get libURLftpCommand(tFtpCmd,"yourFtpHost","username","password")
you can append the port number to the hostname if you aren't using the default port of 21 for ftp. Obviously adjust the path in the tFtpCmd and the hostname and username and password!
Re: how to create a folder on a server using ftp?
Posted: Thu Jul 28, 2011 8:32 pm
by admin12
Thank you for your help.
This is now solved.
Mike