DOS function request...

Feature requests for future versions of Hollywood can be voiced here
Post Reply
User avatar
Tuxedo
Posts: 345
Joined: Sun Feb 14, 2010 12:41 pm

DOS function request...

Post 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?
Simone"Tuxedo"Monsignori, Perugia, ITALY.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DOS function request...

Post 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.
User avatar
Tuxedo
Posts: 345
Joined: Sun Feb 14, 2010 12:41 pm

Re: DOS function request...

Post 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
Simone"Tuxedo"Monsignori, Perugia, ITALY.
Post Reply