Accessing an "access denied" file.

Fuga

Registered User.
Local time
Today, 21:44
Joined
Feb 28, 2002
Messages
566
Hi all,


I don´t know if this can be done at all.

When a process of some kind is using a file, you can´t access it in anyway, can you?

The reason is we have an application that locks files it is supposed to go to work on (it is a printer, merging two or more pages together before printing). The thing is it is not very stable, and every time it hangs, the pages has to go through the whole process again, even though the files are there.

I´d like to replace the "page 1" file (which is locked waiting for the page 2 file), with a file that was processed earlier. Nothing is being written to the "page 1" file at this point, but it is locked all the same.

How does the system mark a file "access denied"?

I realize I might be in the wrong forum. You´ll forgive me.


Fuga.
 
Unfortunately, some of the locking is done invisibly when the file is opened. At the time it is opened, the file subsystem creates a file lock and locks it according to the application requirements. Printer applications tend to lock files against just about anything. And therefore the only way to unlock the file is to let it print OR find the print queue, identify the entry containing your file, and delete that entry.

I know that's not what you wanted to hear, but I think it is true.
 

Users who are viewing this thread

Back
Top Bottom