FileZilla Forums

Welcome to the official discussion forums for FileZilla
Donate to project
It is currently 2014-04-20 00:38

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: 2010-05-26 21:06 
Offline
500 Command not understood

Joined: 2010-05-26 20:53
Posts: 3
Hey guys,
Hope all is well...

Was hoping that someone can enlighten me if this function is possible within Filezilla.

At times I upload the same exact files or even folders from my desktop to different directories within the same server.

The thing is that I do this all by clicking on each and every directory that I need one at a time.

I was hoping that it would be possible to select a file or folder from my desktop and then being able to select the different directories that I would want those same exact files or folders to go into, all in one go...

Is this possible?
Have I been a bit of a donkey doing all of this one by one?

Thanks for the guys,
G.


Top
 Profile  
 
PostPosted: 2010-05-26 23:54 
Online
226 Transfer OK
User avatar

Joined: 2006-05-01 03:28
Posts: 19652
Location: Germany
No, that's not a feature of FileZilla.

You could make your life a little easier by using a commandline FTP client and writing yourself a script.

_________________
### BEGIN SIGNATURE BLOCK ###
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
All support requests per PM will be ignored!
### END SIGNATURE BLOCK ###


Top
 Profile  
 
PostPosted: 2010-05-29 19:09 
Offline
500 Command not understood

Joined: 2010-05-26 20:53
Posts: 3
Thanks for the reply...

Got no idea how to do that :cry:

sadly I am not that techie.

How would I go about getting that script done and what is a commandline FTP client?

Thanks a lot for the help, it's cool to know that there just might be possible to make this monotonous file loading task can get done easier.

G.


Top
 Profile  
 
PostPosted: 2010-05-30 01:58 
Online
226 Transfer OK
User avatar

Joined: 2006-05-01 03:28
Posts: 19652
Location: Germany
Quote:
what is a commandline FTP client?
That's an FTP client without a fancy GUI. They don't have been written for interactive use, but batch files and automatic/scheduled processes. If your OS is Windows, there is a very basic commandline client already included (FTP.exe).

A script is essentially like a batch file for DOS, mostly a line-by-line list of pseudo-DOS or FTP commands. I'd put it this way: Everything you'd have to enter manually into the commandline FTP to get a job done can also be simply written into a text file and processed automatically.

Example for the Windows FTP: You want to upload the contents of the directory C:\localdir into the directory /remotedir on the server ftp.example.com.

Code:
prompt
lcd C:\localdir
open ftp.example.com
ftpuser1
MyPASSw0rD
cd /remotedir
binary
mput *
quit


Explanation:
Line 1 - FTP by default asks confirmation for certain actions. As we execute in batch mode, we don't want that.
Line 2 - lcd command is used to set the local directory. This is essentially the same as selecting a directory on the local side in FileZilla.
Line 3 - Connects to a server. If a port is required, add it after the servername, separated by a blank.
Line 4 - Username, after opening a server FTP automatically requests this.
Line 5 - Password, see above. This completes the login.
Line 6 - This command changes the server directory.
Line 7 - Puts the server into Binary data type (see Data Type). This example assumes all files need to be transferred Binary (JPG for example). Use ascii for ASCII type.
Line 8 - mULTIPLEput command uploads multiple files, the asterisk means ALL files in this dir, but you could also use *.jpg, for example.
Line 9 - Disconnects from the server, quits FTP.exe and returns control to your batch file.

That's it. Now you simply put the script in a file and execute FTP.exe -s:<script file name> .


Sounds complicated, but is actually fairly easy. With a little variation you can do the above example upload to multiple servers. Just delete line 3 (the open command) from the script and execute FTP.exe -s:<script file name> <server name> . With a batch file like this:
Code:
ftp.exe -sSCRIPT.FTP ftp.example.com
ftp.exe -sSCRIPT.FTP ftp.example2.com
ftp.exe -sSCRIPT.FTP ftp.example3.com
ftp.exe -sSCRIPT.FTP ftp.example4.com
ftp.exe -sSCRIPT.FTP ftp.example5.com
we have now uploaded the same files to 5 servers, and all we needed was starting the batch file.

_________________
### BEGIN SIGNATURE BLOCK ###
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
All support requests per PM will be ignored!
### END SIGNATURE BLOCK ###


Top
 Profile  
 
PostPosted: 2010-06-19 11:10 
Offline
500 Command not understood

Joined: 2010-06-19 11:04
Posts: 2
HI everyone,

i have a 4 scripts (script1.txt,script2.txt,script3.txt,script4.txt) and i wanna execut the 4 scripts in the same time can you help me please

regards,,,


Top
 Profile  
 
PostPosted: 2010-06-19 21:45 
Online
226 Transfer OK
User avatar

Joined: 2006-05-01 03:28
Posts: 19652
Location: Germany
You have to start one instance for every script. Use the START command in the batch.

_________________
### BEGIN SIGNATURE BLOCK ###
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
All support requests per PM will be ignored!
### END SIGNATURE BLOCK ###


Top
 Profile  
 
PostPosted: 2010-06-30 11:57 
Offline
500 Command not understood

Joined: 2010-06-19 11:04
Posts: 2
hi,


mput * not working with all types, it working just with files , but i wanna copy the directoories , can you help me ...


thxxxx


Top
 Profile  
 
PostPosted: 2010-06-30 19:02 
Online
226 Transfer OK
User avatar

Joined: 2006-05-01 03:28
Posts: 19652
Location: Germany
Use a real commandline FTP client like lftp, as far as I know the basic Windows ftp.exe does not support recursion at all (besides other important features like Passive mode).

_________________
### BEGIN SIGNATURE BLOCK ###
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
All support requests per PM will be ignored!
### END SIGNATURE BLOCK ###


Top
 Profile  
 
PostPosted: 2011-07-03 13:15 
Offline
500 Command not understood

Joined: 2010-05-26 20:53
Posts: 3
Thanks for all the help guys...


Top
 Profile  
 
PostPosted: 2011-07-11 09:58 
Offline
500 Command not understood

Joined: 2011-07-11 09:49
Posts: 2
As I understood, transfer file(s) to multiple ftp-server are not possible too?


Top
 Profile  
 
PostPosted: 2011-07-11 10:19 
Online
226 Transfer OK
User avatar

Joined: 2006-05-01 03:28
Posts: 19652
Location: Germany
Of course it's possible to transfer to multiple servers, just not simultaneously.

_________________
### BEGIN SIGNATURE BLOCK ###
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
All support requests per PM will be ignored!
### END SIGNATURE BLOCK ###


Top
 Profile  
 
PostPosted: 2011-07-11 10:40 
Offline
500 Command not understood

Joined: 2011-07-11 09:49
Posts: 2
Oh, I put it wrong.
I need to add the file(s) to the queue for load to several servers.
Something like I made group of sites, than select the files and choose "Load to all sites in group".


Top
 Profile  
 
PostPosted: 2011-07-11 12:11 
Online
226 Transfer OK
User avatar

Joined: 2006-05-01 03:28
Posts: 19652
Location: Germany
No, not possible.

_________________
### BEGIN SIGNATURE BLOCK ###
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
All support requests per PM will be ignored!
### END SIGNATURE BLOCK ###


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Dedicated server provided by Artmotion.
Forum sponsored by Everyware.ch.
Powered by phpBB® Forum Software © phpBB Group