SmartFTP Forums: Can I ftp within the same directory - SmartFTP Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can I ftp within the same directory

#1 User is offline   johntoh 

  • Group: Members
  • Posts: 1
  • Joined: 02-November 09

Posted 04 November 2009 - 10:04 PM

Hi,

I'm writing a script that will ftp a file from one server to another.
At the moment I only have access to one ftp server to test out the script so I'm trying to ftp a file from one folder to another folder in the same directory.

I have the following:

ftp -vin $LOGFILE
open $ftp_SERVER
user $ftp_USER $ftp_PASS
cd $ftp_EFTFROM
lcd $ftp_EFTTO
prompt
$ftp_MODE
mput *
quit

I get the following error:
mput *? Illegal operation. Use the COPY command

Is it not possible to do this??

#2 User is offline   mb 

  • Developer
  • Group: Root Admin
  • Posts: 9845
  • Joined: 11-October 01
  • Gender:
    Male
  • Location:
    Worldwide

Posted 04 November 2009 - 10:11 PM

You cannot do this with the command line FTP client. However you can use the FTP Library:
http://www.smartftp.com/ftplib

Look at the FXP sample.

#3 User is offline   jessekaye 

  • Group: Members
  • Posts: 1
  • Joined: 24-February 10

Posted 25 February 2010 - 08:55 PM

you give full 777 permission to the folder which you want to acess in the place of the host name user the host address as IP it may work...

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users