Sign in to follow this  
Followers 0
Skrip

FileClose from all programs?

3 posts in this topic

Is it possible to make another program stop accessing a file? Such as an exe accessing a dll, or an exe accessing another exe or process, ect?

Or cut all programs from accessing the file?


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites



Is it possible to make another program stop accessing a file? Such as an exe accessing a dll, or an exe accessing another exe or process, ect?

Or cut all programs from accessing the file?

Sure...

$sPath = "C:\Temp\Test.txt"
FileDelete($sPath)
FileRecycleEmpty()

:P

If that's not what you meant, you'll have to be more specific. Have you set the file's permissions? You want to prevent even root processes from working with the file? Not deleting it means you want SOME programs to work with it... which ones, run by whom?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Is it possible to make another program stop accessing a file?

I assume you will need to use the help of some extra program like "unlocker".

Keep in mind that killing file locks can end up in unpredicteble results.

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0