Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Locked files  (Read 2643 times)

0 Members and 1 Guest are viewing this topic.

ckimble77

  • Guest
Locked files
« on: November 20, 2007, 02:13:40 PM »
Is there a way to see what files are locked and by whom?

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Locked files
« Reply #1 on: November 20, 2007, 06:10:34 PM »
I not sure if Windows or DOS keeps track of locked files. A very inelegant solution would be to get a list of the files and then attempt to open each for reading. If successful, you'd know the file was unlocked and if unsuccessful, you'd know the file was locked.

VBScript would be one solution, but if the list of files was large, the script would run at glacial speed and the overhead on the I/O subsystem would be horrendous.

 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein