How to Use the Quit Command

Use the command quit to exit FileZilla Pro Command Line.

FileZilla Pro Command Line returns an exit code to the calling process (usually the operating system shell). If the error flag (see Error Handling) is set the exit code is 0, otherwise is 1.

Also, the quit command can take a parameter to set the exit code that will be returned:

    quit <exit code>

The exit code can be read by inspecting the following variables:

  • On the command prompt (CMD.EXE), inspect the environment variable %ERRORLEVEL%
  • On PowerShell, inspect the variable $LastExitCode

Tags: ,