Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folder created or removed trigger
#1
I am in need of a folder created or removed trigger. This function works ony if a folder is created.

Function FolderCreated
Trigger $f 0xC03 "$favorites$"     Help - how to add the trigger to the macro
Code:
Copy      Help
function event $name [$newname]
;event: 1 added, 2 removed, 4 renamed, 8 modified

Dir d
if(!d.dir(name 1)) ret ;; obviously, it works only when a file is created

out name

Could you please advise in the case of folder deletion.

Thanks.
#2
Currently cannot know what it was. Could exclude files that have . in filename, but it is not reliable. Will add the trigger option in next QM.


Forum Jump:


Users browsing this thread: 1 Guest(s)