SystemEvents connector methods

  • Release version: Australia
  • Updated March 12, 2026
  • 1 minute to read
  • The SystemEvents connector methods watch various system events and, if needed, stop watching.

    Methods

    Provides the following methods and the events these methods track:

    WatchFileSystem

    Watches the following events.
    Table 1. File system events
    Event Description Parameter
    FileChanged Update to the file.
    • Name: Name of the file that is updated.
    • Path: Path to the file.
    • ChangeType: Type of update to the file.
    FileCreated New file created in the path watched by the WatchFileSystem method.
    • Name: Name of the file created.
    • Path: Path to the file that was created.
    FileDeleted File deleted from the path watched by the WatchFileSystem method.
    • Name: Name of the file deleted.
    • Path: Path to the file that was deleted.
    FileRenamed Name of the file changed.
    • OldName: Previous name of the file.
    • OldPath: Previous path to the file, if path has also changed.
    • NewName: New name of the file.
    • NewPath: New path to the file, if applicable.
    FileWatchError WatchFileSystem method error.
    Input
    Path
    FileTypes
    SubDirectories (Boolean)

    WatchNetworkAvailability

    Watches the network availability in the system. It uses the following events. You must execute the WatchNetworkAvailability method before executing any of the following events.
    Table 2. Network event availability
    Event Description Parameter
    NetworkAvailable Watches the system when network is available.
    NetworkUnavailable Watches the system when network is unavailable.

    WatchSessionEvents

    Watches the following events.
    Table 3. Session events
    Event Description Parameter
    OnSessionLock When a session is locked by the user.
    OnSessionUnlock When a session is unlocked by the user.
    OnSessionRemoteControl When a session is remote controlled by the user.
    OnSessionLogoff When the session is logged off.

    UnwatchFileSystem

    Stops or prevents the RPA Desktop Design Studio from watching the file system events. You can use this method before or after the WatchFileSystem method was already used.

    UnwatchNetworkAvailability

    Stops or prevents the RPA Desktop Design Studio watching the network availability events. You can use this method before or after the WatchNetworkAvailability method was already used.

    UnwatchSessionEvents

    Stops or prevents RPA Desktop Design Studio watching the network availability events. You can use this method before or after the WatchSessionEvents method was already used.