Yes, sorry about misunderstanding. I do this for just a tick of a second, so there would be no problems with any other program. Of course I restore the old value. But it is the only way to prevent TK2 to push its default in front of the given filename.janbredenbeek wrote:I assume you clear out the pointer to the default data directory (sys_datd at $B0), not SV_DDLST as clearing out the latter means the system won't find any directory device anymore...Ralf R. wrote: I can't understand this problem. In S_Edit, I set SV_DDLST to "" to not let TK2 use its default directory. The only way to do so, to examine, if a file name really exists and to prevent TK2 to rush its default directory in front of a filename. So, things like "win1_flp2_test_asm" are not possible. That's the most bad behavier of TK2 (in my opinion).
At least, if the filename isn't found, I set SV_DDLST to its original value and try again. If that isn't found, it is a new file.
To be honest, TK2 shouldn't search for eg. "win1_flp2_test_asm". Noone would save this.