brucexs wrote:
> It has not changed since last December. The file is closed before
> writeall returns.
>
>> notepad &(tf)
>> file.deletenorecycle(tf)
>>
>> notepad opens the new temp file, but if I just run the code, notepad
>> complains that it can't find the temp file.
>
> Does the file name have blanks?
No, the file name has no blanks. It's env("TEMP")++something, Windows sets
%TEMP% to a short filename.
I have confirmed that this problems is timing dependent. When I single
step through the code it never happens. It always happens if I don't
single step. I changed
notepad &(tf)
to
file.runwait(..."notepad",tf,...)
and got the same weird behavior.
But when I added wait.for(10000) between file.writeall and running notepad
this problem still manifested itself. It seems that going into the script
debugger is the only way to keep it from happening.