Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Watch folder copy new file string path?
#1
I would like create a Quick Macro that watches a folder. Every time a new file is created I want the full path string copied to the clipboard. How could this be accomplished. Thanks
#2
Look in Properties, "File" trigger.

example
Function Function311
Trigger $f 0x401 "$my qm$"     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
;out F"{event} {name}"
str s=name
s.setclip
#3
Fantastic!
#4
In a folder the first file that is created is always a temp file. The name of the file is like so  "C:\myFolder\94672.tmp" the next file created is the file I want. Its name is like so "C:\myFolder\ImageFile007.png". Is there anyway to tell the command skip the file named "C:\myFolder\*.tmp", and then use the next file? Thanks

Update***
As quick as I asked I saw the Exclude area of the trigger window. Thanks
#5
Is it possible to exclude two file formats? If so what is the syntax to write them both in the exclude area? I tried
Code:
Copy      Help
*.mp4, *.tmp
#6
Function Function311
Trigger $f 0x401 "$my qm$" "" "*.mp4|*.tmp"     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
;out F"{event} {name}"
str s=name
s.setclip
#7
Thanks @Kevin your answer is super helpful. Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)