Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).
Built-in variables used by Server Event Scripts
Robo-FTP Server is able to launch Server Event Scripts based on what is happening on the server. When Robo-FTP Server fires an event, it also populates some built-in variables with information relevant to that event which you can use in your script.
Server Event Scripts launch with the current user's home directory as the working directory.
Logon Event
%event_logonresult -- the result final FTP result code sent to the client indicating the success or failure of the logon
%event_logonname -- name of user that just logged on (or that tried to)
%event_logonhome -- full path for home directory of user that just logged on
%event_logondatetime -- date and time of the logon event (in the same format as the existing %datetime script variable)
Logoff Event
%event_logoffresult -- the result final FTP result code sent to the client indicating the success or failure of the logoff
%event_logoffname -- name of user that just logged off (or that tried to)
%event_logoffhome -- full path for home directory of user that just logged off (or that tried to)
%event_logoffdatetime -- date and time of the logoff event (in the same format as the existing %datetime script variable)
Upload Complete Event
%event_logonname -- name of user that just uploaded a file (or that tried to)
%event_logonhome -- full path for home directory of user that just uploaded a file
%event_uploadresult -- the result final FTP result code sent to the client indicating the success or failure of the upload
%event_uploadfile -- name of the file just uploaded (or that was attempted, if known)
%event_uploadfolder -- name of the folder where file was just uploaded
%event_uploadpath -- full path and file name for file that was just uploaded
%event_uploaddatetime -- date and time of the upload event (in the same format as the existing %datetime script variable)
Download Complete Event
%event_logonname -- name of user that just downloaded a file (or that tried to)
%event_logonhome -- full path for home directory of user that just downloaded a file
%event_downloadresult -- the result final FTP result code sent to the client indicating the success or failure of the download
%event_downloadfile -- name of the file just downloaded (or that was attempted, if known)
%event_downloadfolder -- name of the folder where file was just downloaded
%event_downloadpath -- full path and file name for file that was just downloaded
%event_downloaddatetime -- date and time of the download event (in the same format as the existing %datetime script variable)
Change Directory Event
%event_logonname -- name of user that just changed directory (or that tried to)
%event_logonhome -- full path for home directory of user that just changed directory
%event_chgdirresult -- the result final FTP result code sent to the client indicating the success or failure of the chgdir op
%event_fromchgdirname -- full path name of directory just exited
%event_tochgdirname -- full path name of directory just entered
%event_chgdirdatetime -- date and time of the chgdir event (in the same format as the existing %datetime script variable)
See also:
What sort of things are Server Event Scripts used for?
Problem: Robo-FTP Server stopped launching Server Event Scripts.
Tags: Robo-FTP Server, Server Event Scripts

