file watcher

Allows you to keep track of the changes made to your files.


Example

Running this code will create a UI stat monitor tracking the list "%list total". After, the code will count the number of changes you made with all of the "*.txt" files.

As shown above the UBot browser, there are 2 changes made to the files.

ui stat monitor("",$list total(%report))
plugin command("OS Automation.dll", "file watcher", $special folder("Desktop"), "File Name", "*.txt", "False", "Start Watcher", %report, "False", "")
wait(1)
save to file("{$special folder("Desktop")}\\test.txt","")
wait(1)
rename file("{$special folder("Desktop")}\\test.txt","test2.txt")
wait(1)
delete file("{$special folder("Desktop")}\\test2.txt")

Was this helpful?

Previous Article

file owner/set

Next Article

folder attributes/set