EXIT        Terminate Robo-FTP

Top  Previous  Next

Syntax:

EXIT

[ /options ]

Arguments:

[ /options ]

 

Options:

/exitcode=nn

Define exit value for Robo-FTP.

 

/forced

Exit even if line is connected.

 

 

This script command ends script processing and terminates Robo-FTP. The action is the same as clicking the Exit button on the Robo-FTP toolbar or pressing the Alt-F4 key.

 

Using the EXIT command in a script that is being run as a service will stop the service, however the service will still be defined. To complete the removal of the service from the Windows Service Manager you must also stop the service with the Robo-FTP Service Installer or Enterprise Dashboard.  If you wish to design your service so that it can be stopped cleanly on demand, see Shutting Down a Robo-FTP Service.

 

Caution

When scripts are run as the result of the CRON or CALL commands, it also doubtful that EXIT is a valid command in any such script - to exit a script under such circumstances refer to the RETURN command.

 

EXIT does not work on the COM interface; use RoboEndSession() instead.

 

The /exitcode=nn option allows you to define the program exit code passed back to the operating system or calling process.

 

The /forced option performs a forced quit that terminates any I/O in progress and disconnects the line prior to exiting.

 

 

Related Command(s): BREAK, RETURN, STOP