msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I Determine what App/Process has a lock on a file ???

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Agent Smith



Joined: 04 Oct 2007
Posts: 4

PostPosted: Sat Sep 06, 2003 9:28 am    Post subject: How do I Determine what App/Process has a lock on a file ??? Reply with quote

been looking around for API code to determine what App/Process
has a lock on a specific file.

Scenerio : im trying to delete an AVI file after it finished
playing and i kill the application (win Media player) ..
but keep getting "File in use or being used by another
appication" error msg, even after restarts....

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Steven Burn



Joined: 04 Oct 2007
Posts: 12

PostPosted: Sat Sep 06, 2003 8:40 pm    Post subject: Re: How do I Determine what App/Process has a lock on a file Reply with quote

Before you kill the application, are you closing any file's it has open?

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk
Agent Smith wrote in message@4ax.com...
>
> been looking around for API code to determine what App/Process
> has a lock on a specific file.
>
> Scenerio : im trying to delete an AVI file after it finished
> playing and i kill the application (win Media player) ..
> but keep getting "File in use or being used by another
> appication" error msg, even after restarts....
>
>
>
Back to top
View user's profile Send private message
Peter Huang [MSFT]



Joined: 04 Oct 2007
Posts: 56

PostPosted: Mon Sep 08, 2003 9:44 am    Post subject: RE: How do I Determine what App/Process has a lock on a file Reply with quote

Hi Agent ,

I have posted a response to your question in another thread:
microsoft.public.vb.winapi titled “How do i detemine what App/Process has a
lock on a specific file ?????”. Please have a check and let me know
whether the information provided in the response was useful in resolving
the issue. If you still have questions, please reply to that thread to let
us know you need further assistance.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
>From: Agent Smith
>Newsgroups: microsoft.public.vb.enterprise
>Subject: How do I Determine what App/Process has a lock on a file ???
>Organization: fReEdoM
>Message-ID:
>X-Newsreader: Forte Agent 1.93/32.576 English (American)
>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>Lines: 11
>Date: Sat, 06 Sep 2003 05:28:51 GMT
>NNTP-Posting-Host: 129.44.61.236
>X-Complaints-To: abuse@verizon.net
>X-Trace: nwrdny02.gnilink.net 1062826131 129.44.61.236 (Sat, 06 Sep 2003
01:28:51 EDT)
>NNTP-Posting-Date: Sat, 06 Sep 2003 01:28:51 EDT
>Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!newsfeed.news2me.com!cyclone1.gnilink.net!spamkille
r2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail
>Xref: cpmsftngxa06.phx.gbl microsoft.public.vb.enterprise:74187
>X-Tomcat-NG: microsoft.public.vb.enterprise
>
>
> been looking around for API code to determine what App/Process
>has a lock on a specific file.
>
> Scenerio : im trying to delete an AVI file after it finished
>playing and i kill the application (win Media player) ..
> but keep getting "File in use or being used by another
>appication" error msg, even after restarts....
>
>
>
>
Back to top
View user's profile Send private message
Agent Smith



Joined: 04 Oct 2007
Posts: 4

PostPosted: Tue Sep 09, 2003 5:10 pm    Post subject: Re: How do I Determine what App/Process has a lock on a file Reply with quote

On Mon, 08 Sep 2003 05:44:27 GMT, v-phuang@online.microsoft.com (Peter
Huang [MSFT]) wrote:

Peter my response is in vb.api group,
thnx


>Hi Agent ,
>
>I have posted a response to your question in another thread:
>microsoft.public.vb.winapi titled “How do i detemine what App/Process has a
>lock on a specific file ?????”. Please have a check and let me know
>whether the information provided in the response was useful in resolving
>the issue. If you still have questions, please reply to that thread to let
>us know you need further assistance.
>
>Regards,
>Peter Huang
>Microsoft Online Partner Support
>Get Secure! www.microsoft.com/security
>This posting is provided "as is" with no warranties and confers no rights.
>--------------------
>>From: Agent Smith
>>Newsgroups: microsoft.public.vb.enterprise
>>Subject: How do I Determine what App/Process has a lock on a file ???
>>Organization: fReEdoM
>>Message-ID:
>>X-Newsreader: Forte Agent 1.93/32.576 English (American)
>>MIME-Version: 1.0
>>Content-Type: text/plain; charset=us-ascii
>>Content-Transfer-Encoding: 7bit
>>Lines: 11
>>Date: Sat, 06 Sep 2003 05:28:51 GMT
>>NNTP-Posting-Host: 129.44.61.236
>>X-Complaints-To: abuse@verizon.net
>>X-Trace: nwrdny02.gnilink.net 1062826131 129.44.61.236 (Sat, 06 Sep 2003
>01:28:51 EDT)
>>NNTP-Posting-Date: Sat, 06 Sep 2003 01:28:51 EDT
>>Path:
>cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
>e.de!newsfeed.freenet.de!newsfeed.news2me.com!cyclone1.gnilink.net!spamkille
>r2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail
>>Xref: cpmsftngxa06.phx.gbl microsoft.public.vb.enterprise:74187
>>X-Tomcat-NG: microsoft.public.vb.enterprise
>>
>>
>> been looking around for API code to determine what App/Process
>>has a lock on a specific file.
>>
>> Scenerio : im trying to delete an AVI file after it finished
>>playing and i kill the application (win Media player) ..
>> but keep getting "File in use or being used by another
>>appication" error msg, even after restarts....
>>
>>
>>
>>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group