Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4.7k views
in .NET FTP by (440 points)
I'm using ExFTPConnection.Save to save connection properties. I'm also aware of the ExFTPConnection.Load method of loading properties. Is there any documentation or sample code available to help me with pulling the actual individual properties from the file I'm loading using ExFTPConnection.Load?

I want to be able to connect to a host by loading the properties from a file versus having to always type in the login and password.

Thx.

5 Answers

0 votes
by (162k points)
That's the idea of Load. It should read the saved file and populate the connection's properties from it.
0 votes
by (440 points)
Thanks, Bruce. I understand what the Load method is supposed to do. I'm not sure why the connection did not complete once I loaded the configuration.
0 votes
by (162k points)
The debugger should show you if any properties you require are missing.
0 votes
by (51.6k points)
FYI, the file is stored in XML format. You can view it in a text- or xml-editor, and parse it using .NET's XML parsing function as shown below:
XmlDocument ftpConnectionSettings = new XmlDocument();
ftpConnectionSettings.Load("myftpsetting.xml");


- Hans (EnterpriseDT)
0 votes
by (440 points)
Thank you, Hans.

Categories

...