PC Review


Reply
Thread Tools Rate Thread

Check if file is open and if it is unlock and delete

 
 
Peter
Guest
Posts: n/a
 
      22nd Nov 2004
Question one:

How do you detect if a file is locked. I have a program that is
cleaning up a temp directory and I want to scan the files to see if
they are locked before I try to delete them.

Question Two:

If the file is locked and I have admin privilages how do you take
ownership of the file and then delete it?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help How to unlock a file for delete Nope Windows XP General 5 30th Jan 2007 02:33 AM
Check Disk..Delete file =?Utf-8?B?bG9vdGV2b2xp?= Windows XP General 1 17th Dec 2005 06:05 PM
how do i password protect an .xls file? how do i unlock it for automation. e.g. want to unlock and access a .xls from another .xls macro. Daniel Microsoft Excel Worksheet Functions 1 24th Jun 2005 02:59 PM
how do i password protect an .xls file? how do i unlock it for automation. e.g. want to unlock and access a .xls from another .xls macro. Daniel Microsoft Excel Discussion 1 24th Jun 2005 01:20 AM
Check to unlock Steve Microsoft Access Forms 2 7th Jan 2004 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:29 AM.