FTPClient by Stuart McCall

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

does anyone here use FTPClient by Stuart McCall?

My question is this:
In the "PutFile()" function there is the command
"Me.SetDir m_RemoteDir"

WHY????

Why change the dir when I am trying to UPload a file?
IF needed then what value do I need in "m_RemoteDir" to tell it to use
the current directory?

Right now I commented out the line and my code is working. I just trying to
figure out what is the right way to FTP is?
 
Hi, Scott.
Why change the dir when I am trying to UPload a file?

When connecting to an FTP server, one commonly connects to the root
directory or a "staging" directory, and one needs to navigate to the correct
directory to fetch or store files. If you are connecting to the directory in
which you want to store your files, then there is no need to navigate to
another directory.
IF needed then what value do I need in "m_RemoteDir" to tell it to use
the current directory?

You wouldn't use that line of code, because you're "already there" -- where
you want to be.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact info.
 
That what I thought. It is my first time with FTP code. I just what to make
sure I am NOT missing something important.

Scott Burke
Thanks for your time.
 
Back
Top