02-09-2015 04:11 PM
Hello, I need to create a New Folder on a FTP server but i don't know how to do.
I read about a MKD (make remote directory) command:
http://forums.ni.com/t5/LabVIEW/Create-a-folder-on-FTP-Server/td-p/1424906
but i didn't find it
02-09-2015 04:42 PM
I could be very wrong about this (but I don't think so), but I suspect the hoops you need to jump through depend heavily on the FTP Server and what commands it accepts. Then there's the issue of how you communicate with it ...
BS
02-09-2015 04:46 PM - edited 02-09-2015 04:48 PM
Sorry, I am able to comunicate with server (it is a FTP server created in Win7), i able to save a file in an existing folder but i don't know how to create a new folder...is there a command?
Bob_Schor ha scritto:
I could be very wrong about this (but I don't think so), but I suspect the hoops you need to jump through depend heavily on the FTP Server and what commands it accepts. Then there's the issue of how you communicate with it ...
BS
02-09-2015 05:32 PM - edited 02-09-2015 05:35 PM
The command is MKDIR
? | to request help or information about the FTP commands | |
---|---|---|
ascii | to set the mode of file transfer to ASCII (this is the default and transmits seven bits per character) |
|
binary | to set the mode of file transfer to binary (the binary mode transmits all eight bits per byte and thus provides less chance of a transmission error and must be used to transmit files other than ASCII files) |
|
bye | to exit the FTP environment (same as quit) | |
cd | to change directory on the remote machine | |
close | to terminate a connection with another computer | |
close brubeck | closes the current FTP connection with brubeck, but still leaves you within the FTP environment. |
|
delete | to delete (remove) a file in the current remote directory (same as rm in UNIX) | |
get | to copy one file from the remote machine to the local machine | |
get ABC DEF | copies file ABC in the current remote directory to (or on top of) a file named DEF in your current local directory. | |
get ABC | copies file ABC in the current remote directory to (or on top of) a file with the same name, ABC, in your current local directory. | |
help | to request a list of all available FTP commands | |
lcd | to change directory on your local machine (same as UNIX cd) | |
ls | to list the names of the files in the current remote directory | |
mkdir | to make a new directory within the current remote directory | |
mget | to copy multiple files from the remote machine to the local machine; you are prompted for a y/n answer before transferring each file |
|
mget * | copies all the files in the current remote directory to your current local directory, using the same filenames. Notice the use of the wild card character, *. | |
mput | to copy multiple files from the local machine to the remote machine; you are prompted for a y/n answer before transferring each file |
|
open | to open a connection with another computer | |
open brubeck | opens a new FTP connection with brubeck; you must enter a username and password for a brubeck account (unless it is to be an anonymous connection). |
|
put | to copy one file from the local machine to the remote machine | |
pwd | to find out the pathname of the current directory on the remote machine | |
quit | to exit the FTP environment (same as bye) | |
rmdir | to to remove (delete) a directory in the current remote directory |
02-09-2015 05:50 PM
Sorry but i don't know how can I send this command with labview... is there a labview commandto send a ftp command?
02-09-2015 06:21 PM
Ok I found ftp command.vi in ftp2.llb
Thanks|
02-10-2015 11:11 AM
@smilegv wrote:
Sorry but i don't know how can I send this command with labview... is there a labview commandto send a ftp command?
I would use the system exec.vi