Difference between revisions of "Post login commands"

From FileZilla Wiki
Jump to navigationJump to search
(Created page with 'Some obscure legacy servers require some custom commands to be issued before they are usable by modern FTP clients. Manually entering these commands does not work as they do not …')
 
Line 21: Line 21:
  
 
If connecting using this site-manager entry, these commands get executed in the transfer connections as well.
 
If connecting using this site-manager entry, these commands get executed in the transfer connections as well.
 +
 +
sitemanager.xml file is located in C:\Users\username\AppData\Roaming\FileZilla  on Windows 7

Revision as of 17:50, 2 April 2013

Some obscure legacy servers require some custom commands to be issued before they are usable by modern FTP clients. Manually entering these commands does not work as they do not apply to the transfer connections which are separate from the browsing connection.

There is a workaround using the post-login command feature of the site-manager. Add a new site-manager entry and close FileZilla. Next open sitemanager.xml in the settings directory of FileZilla and add a PostLoginCommands element inside the Server element. Inside PostLoginCommand, use the Command element, with the actual command to execute as text.

Example:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<FileZilla3>
    <Servers>
        <Server>
            <Host>127.0.0.1</Host>
            <Port>21</Port>
            <PostLoginCommands>
              <Command>PWD</Command>
              <Command>QUIT</Command>
            </PostLoginCommands>
        </Server>
    </Servers>
</FileZilla3>


If connecting using this site-manager entry, these commands get executed in the transfer connections as well.

sitemanager.xml file is located in C:\Users\username\AppData\Roaming\FileZilla on Windows 7