| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Trouble CD into subfolder |
| Terrence From: Austin, TX USA Posts: 13 Member Since: 04/22/04 |
posted May 12, 2004 12:51 PM I don't see support for the CD command in the docs. Could you please tell me how I can CD into a subfolder on a target ftp site and ftp a file to that subfolder. private Dart.PowerTCP.Ftp.Ftp ftp1; ftp1.Username = subscriber.ftpusername.Trim(); ftp1.Password = subscriber.ftppassword.Trim(); ftp1.ServerPort = Convert.ToInt16(subscriber.ftpport); ftp1.Server = subscriber.ftpaddress.Trim(); ftp1.FileType = Dart.PowerTCP.Ftp.FileType.Image; ftp1.DoEvents = true; ftp1.Passive = false; ftp1.Restart = false; //Try to Put the files. If this fails, call abort to //abort the connection and clean up try { DateTime startTime = System.DateTime.Now; Dart.PowerTCP.Ftp.FtpFile ftpFile = ftp1.Put(localFileName, targetFileName); I need to CD into the "test\documents" folder. Thanks, Terrence |
| Terrence From: Austin, TX USA Posts: 13 Member Since: 04/22/04 |
posted May 12, 2004 1:13 PM I figured it out. ftp1.Invoke(Dart.PowerTCP.Ftp.FtpCommand.ChangeDir, "/IN/MUNIADCTIN1"); Thanks. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|