|
File Trigger
Click here to show the figure
Parameters
- Folder should be monitored
Specifies a folder which should be monitored.
- Include mask
Specifies the files/folders to be monitored. Each file name must be terminated by a single semicolon, and standard Microsoft MS-DOS wild cards, such as "*", are permitted.
- Exclude mask
Specifies one or more file names which should be ignored. Each file name must be
terminated by a single semicolon, and standard Microsoft MS-DOS wild cards, such as "*", are permitted. The wild cards name "*.*" does not allowed.
- Include sub folder
Specifies whether to monitor the subfolders.
- File actions
Specifies which kind of activity should be monitored.
Note
The file triggers will work on network drives and shares only if the machine is part of a domain and if the computer Macro Expert is running on has at least Read access to the folder being monitored. The trigger will not work on mapped drives or network shares that belong to a Win9x workgroup.
Do not attempt to monitor the windows system directory with the Include mask "*.*" (all files in system direcotry), it will slow down your system.
When a file event occurs, the watcher will pass the matched file name and action type to the player, you could use the global variable "file_watcher_file" to retrieve the file name, and "file_watcher_action" to determine what event (action) is happen. The value of the global variable file_watcher_action can be one value of the following:
- 1 -- File or folder is created
- 2 -- File or folder is deleted
- 3 -- File or folder attribute is changed
- 5 -- File or folder name is changed
|