Matlab FTP server client
    8 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Jack
      
 am 26 Jul. 2014
  
    
    
    
    
    Kommentiert: Star Strider
      
      
 am 26 Jul. 2014
            I want download a specific file from FTP to my desktop so I used this code:
ftp_client = ftp('IP','Username','PASS');
mget(ftp_client,'/First_folder/WW.txt','F:/Target_Folder');
But when I use it, Matlab create a folder in F:/Target_Folder (with the name of First_folder) that contain WW.txt file. I want only have WW.txt in F:/Target_Folder without any folder in it. What should I do?
This is easy in URL style :
urlwrite('URL_Address/First_folder/WW.txt','F:/Target_Folder/TEXT.txt');
But when I use FTP I have this problem.
Thanks.
0 Kommentare
Akzeptierte Antwort
  Star Strider
      
      
 am 26 Jul. 2014
        cd(ftp_client, '/First_folder/');
mget(ftp_client,'WW.txt','F:/Target_Folder');
will work.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Downloads finden Sie in Help Center und File Exchange
			
	Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

