Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Waiting for file exclusive access before File action
#13
OK, played with your function.

Is this stupid code i tried have any chance to fail under some circumstances, or can I use it
too safely for that purpose too?

function event $name [$newname]
event: 1 added, 2 removed, 4 renamed, 8 modified
str NewName Ext
Dir d
long _size
sel event
case [1,8]
d.dir(name)
WaitForFileReady(name)
rep
_size=d.FileSize
out _size
if(_size>0) break
....
do something when file is created


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)