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.
ie:
SetLoginInfo
SetServerDirectoryPathName
Change transfer type to "I"
Upload file x
Upload file y
Upload file z
SetServerDirectoryPathName
Change transfer type to "A"
Upload file a
Upload file b
Upload file c
SetStatusReporting
PassiveMode = True
StartPutFile
The result of this was that all files were uploaded in ASCII format to
the last directory specified. Instead, I changed my code to make two
passes which works but seems inefficient...
ie:
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.
Thanks for any help!
Christian
Pariahware, Inc. Custom Software
<pariahware at pariahware dot com>
<http://www.pariahware.com>
--
God loved you so much that He gave His only son Jesus. What have you
done with God's gift?
_______________________________________________
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>
|