Page 1 of 1

DOS function request...

Posted: Thu May 06, 2010 9:30 pm
by Tuxedo
Hi!
I think that was usefull if we can get a command(or a fgallback) that look if a file was busy or free...
In that way no problem writing or deleting on a file already opened from another app...
Is that possible?

Re: DOS function request...

Posted: Sun May 09, 2010 11:00 pm
by airsoftsoftwair
Simply encapsulate DeleteFile() or OpenFile() in a ExitOnError(FALSE) clause and you won't get any errors when the file is locked by another app.

Re: DOS function request...

Posted: Mon May 10, 2010 12:54 am
by Tuxedo
mmm...
ok but in that way I've to check again to Exists() and than retry to delete it again...
Wasnt better to directly check to Busy() and when FALSE go on with delete or whatever you need ?
Plz sorry if I made weird(and newbe) questions... :P