Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

SystemEvents connector methods

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.

EventDescriptionParameter
FileChangedUpdate to the file.
  • Name: Name of the file that is updated.
  • Path: Path to the file.
  • ChangeType: Type of update to the file.
FileCreatedNew file created in the path watched by the WatchFileSystem method.
  • Name: Name of the file created.
  • Path: Path to the file that was created.
FileDeletedFile deleted from the path watched by the WatchFileSystem method.
  • Name: Name of the file deleted.
  • Path: Path to the file that was deleted.
FileRenamedName 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.
FileWatchErrorWatchFileSystem method error. 

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.

EventDescriptionParameter
NetworkAvailableWatches the system when network is available. 
NetworkUnavailableWatches the system when network is unavailable. 

WatchSessionEvents

Watches the following events.

EventDescriptionParameter
OnSessionLockWhen a session is locked by the user. 
OnSessionUnlockWhen a session is unlocked by the user. 
OnSessionRemoteControlWhen a session is remote controlled by the user. 
OnSessionLogoffWhen 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.

Parent Topic:System Events