Search the web
Sign In
New User? Sign Up
ace-users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[ace-users] Removing open files on Windows   Message List  
Reply | Forward Message #42966 of 42992 |
Re: [ace-users] Removing open files on Windows

Hi Doug,

On Tue, 04 Oct 2005 16:45:02 -0500, Douglas C. Schmidt wrote:
> Hi Folks,
>
> On UNIX you can remove a file that's been open()'d be another
> process and the OS will let you do this and will actually delete the
> file when the final handle is closed. Is there some way to do this on
> Windows, as well?

If all the processs which have an open handle on the file, had opened the
file by passing FILE_SHARE_DELETE to CreateFile(), then a new process can
open the file by passing FILE_FLAG_DELETE_ON_CLOSE to CreateFile() when it
opens the same file, and Windows will delete the file all the open handles
are closed.

-kitty.

--
Krishnakumar B <kitty at dre dot vanderbilt dot edu>
Institute for Software Integrated Systems, Dept. of EECS, Vanderbilt University



Fri Oct 7, 2005 3:48 am

kitty@...
Send Email Send Email

Forward
Message #42966 of 42992 |
Expand Messages Author Sort by Date

Hi Folks, On UNIX you can remove a file that's been open()'d be another process and the OS will let you do this and will actually delete the file when the...
Douglas C. Schmidt
schmidt@...
Send Email
Oct 4, 2005
9:58 pm

... I don't know any out of the box methods to do this. However, there are a couple of tricks which may help you here. If you want to delete a file which...
Adrian Tulloch
my-ace-sub@...
Send Email
Oct 4, 2005
11:55 pm

Hi, Does ACE support SNMP? If not, is there any facility included in ace for managing an application remotely? Regards, Chino ...
Carlo Feliciano Aureus
chinoaureus@...
Send Email
Oct 5, 2005
3:21 am

Snmp++ Or ASNMP in the ACE. Best wishes, Paopaoer ... From: owner-ace-users@... [mailto:owner-ace-users@...] On Behalf Of Carlo Feliciano...
ZhangZhiming
paopaoerzhang@...
Send Email
Oct 5, 2005
4:45 am

Hi Doug, ... If all the processs which have an open handle on the file, had opened the file by passing FILE_SHARE_DELETE to CreateFile(), then a new process...
Krishnakumar B
kitty@...
Send Email
Oct 7, 2005
3:57 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help