M
Mark
I have a command that needs to be run on a file and then once done the file
needs to be removed. Doing this, some of the time I receive an error that
it is already being accessed. I have tried putting a sleep after the
command, and that works - not always guaranteed to work though, but I would
rather do it another way. How can I set it so that it will watch to see if
the file is still being accessed and if not delete otherwise wait until it
is not being accessed?
Thanks in advance.
Mark
needs to be removed. Doing this, some of the time I receive an error that
it is already being accessed. I have tried putting a sleep after the
command, and that works - not always guaranteed to work though, but I would
rather do it another way. How can I set it so that it will watch to see if
the file is still being accessed and if not delete otherwise wait until it
is not being accessed?
Thanks in advance.
Mark