Jump to content

File unlocking


Recommended Posts

I don't think that kind of thing is possible AutoIt native.

I've been looking into Dll calls in the kernel32.dll for:

DuplicateHandle

CloseHandle

And maybe one or two more I can't remember.

I've never done dllcalls before, so I failed miserly this time ofcourse.

Maybe you or someone else dares to go there?

Edit: Type...

P.S.

I also just saw this tread:

http://www.autoitscript.com/forum/index.ph...&hl=dllcall

Might be very interresting in this case!

Edited by Triblade

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Link to comment
Share on other sites

The way I know that other applications delete open files is by adding them to a list that should be deleted on next startup. You can write an autoit script to run on startup that will delete the file when it is not open anymore or at the next startup (save the filename(s) in a temp file).

Unlock is also sometimes possible by removing the read-only attribute see the help on FileSetAttrib

In the beginning there was nothing and then even that exploded - anonymous

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...