Hi,
I've asked for suggestions for this a couple of times in the past. I
was running into a problem were temp files created for editable QT
movies were not being deleted properly in the close event of my
application. On Mac this has been resolved by using the following
shell command as suggested on this list:
myshell=new shell
myshellcommand="rm -f "+ TheEditFile.shellpath
myshell.execute myshellcommand
If myshell.errorCode=0 then
//success
//MsgBox "Temp file deleted successfully."
else
MsgBox "Unable to delete temp file, error code: "+ Str
(myshell.errorCode) + "."
end if
myshell.close
However, this code does not work on windows. i get the same "file
busy" error that I get with the folderitem.delete method.
All references to the file in question and the QT object are closed
before this.
Any suggestions for a way to delete the temp files on windows would
be greatly appreciated.
thanks
Rob
RB 5.5.5, Mac OS 10.4.5
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>