SETEVENT - Set signaled state on named Win32 event |
Top Previous Next |
This script command sets the signaled state of an existing Windows event object. This is useful for developers of external applications that need to communicate or otherwise synchronize with Robo-FTP.
Suppose your external application used the CreateObject Windows API function to make an object named Job01 in the Global namespace. The SETEVENT command changes the object's state to signaled like this:
SETEVENT "Global\Job01"
If your external application was paused using a Windows API function like WaitForSingleObject it could resume its activity when Robo-FTP sets the Job01 event object's state to signaled.
Other techniques for communicating with an external process include controlling Robo-FTP via its COM interface, modifying a text file with the WRITEFILE command, updating a database table with DBQUERY and setting an errorlevel number with the EXIT command's /exitcode option.
See also: Using COM to Control Robo-FTP |