I recently purchased FTPS 4.0 and I'm pretty new to it, but have used
other FTP classes in VB. It apparently isn't working how I had
expected it to. I assumed it was concatenating commands for me.
I haven't yet tried 4.0, but I believe the sequences were designed to
make a single task of say, uploading or downloading files/whole
directories or getting a directory's contents easy by issuing a single
command. If you need to do more complex things, like in your example
where you change directories and modes, then you need to use the
individual commands, like you did in the second example:
SetLoginInfo
SetServerDirectoryPathName
Change transfer type to "I"
Upload file x
Upload file y
Upload file z
SetStatusReporting
PassiveMode = True
StartPutFile
<new instance>
SetServerDirectoryPathName
Change transfer type to "A"
Upload file a
Upload file b
Upload file c
SetStatusReporting
PassiveMode = True
StartPutFile
Can somebody shed some light on how I can do all of this in one
pass/login? Also, would someone like to share a routine that will
auto-create any directories on the FTP server that do not exist? I
guess I was spoiled by the class I used in VB because I could just:
<new instance>
.addfile (local path, remotepath)
.addfile (local path, remotepath)
.addfile (local path, remotepath)
...
.addfile (local path, remotepath)
.send
and the class would create any remote directories it needed to in
order to put the local file in the correct remote path.
Sounds like that could be a feature request for a future version. Post
him a note.
Greg
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|