Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Drives within FTP Server

Status
Not open for further replies.

IForgot

Programmer
Mar 20, 2002
122
US
I can get on to the FTP Server, but my data resides on a different drive within the server.

Changing directories within the login drive is no problem.

But is there a way to programatically change drives within the FTP Server?

Or to initiate an FTP upload or download to a different drive within the FTP Server?

Thanks,
I_Forgot
 
Which FTP Routin are you using?

Ali Koumaiha
TeknoSoft Inc
Farmington Hills, Michigan
 
The following is basically what we are doing...

ThisForm.Label1.caption= "Conecting to FTP Server"
PUBLIC oftp
oftp = CREATEOBJECT('chilkatftp.chilkatftp')
oftp.HOSTNAME = <IP Address>
oftp.PASSWORD = <password>
oftp.Username = <username>
oftp.Passive = 1

lnconn = oftp.CONNECT()
if lnconn < 1
ThisForm.Label1.caption= &quot;Connection failed please try later&quot;
*return
else
ThisForm.Label1.caption=&quot;Retrieving Files...&quot;
oftp.ChangeRemoteDir('c:\inetpub\ x = oftp.MGetFiles('*.dbf','eml\')
x = oftp.MGetFiles('*.fpt','eml\')
*release oftp

THISFORM.processfiles()
endif

You can see the ChangeRemoteDir() which allows us to change to another directory within the default drive.

But we cannot figure out how to change drives.

If we attempt to change the file specifier within the MGETFILES() to include a different drive letter, we get an error.

Thanks,
I_Forgot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top