Front page | perl.perl5.porters |
Postings from June 2006
Re: OS abstraction
From:
Dr.Ruud
Date:
June 26, 2006 03:54
Subject:
Re: OS abstraction
Message ID:
20060626105351.5301.qmail@lists.develooper.com
Tim Jenness schreef:
> [Win32, delete on close]
> I would love to
> receive a patch for File::Temp that finally sorts out this issue.
FILE_FLAG_DELETE_ON_CLOSE +
FILE_SHARE_DELETE
But for Win95 you need to create a bat-file process:
http://www.chez.com/mooncoder/Articles/DeleteMe02.htm
See also
http://msdn.microsoft.com/library/en-us/fileio/fs/deletefile.asp
"The DeleteFile function marks a file for deletion on close. Therefore,
the file deletion does not occur until the last handle to the file is
closed. Subsequent calls to CreateFile to open the file fail with
ERROR_ACCESS_DENIED."
--
Affijn, Ruud
"Gewoon is een tijger."