Welcome, Guest. Please login or register.

Author Topic: Stopping "Insert Volume.." requesters with Lock()  (Read 1716 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show all replies
    • http://www.doobreynet.co.uk
Stopping "Insert Volume.." requesters with Lock()
« on: January 04, 2006, 08:23:03 PM »
 Is there an easy way to check that a file/dir exists without having that annoying "Please insert volume:blah blah" requester ?

 Or am I stuck having to LockDosList() and traverse the list to see if the volume exists ,and only then do a Lock() (not forgetting the UnlockDosList() after !!) ?


On schedule, and suing
 

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show all replies
    • http://www.doobreynet.co.uk
Re: Stopping "Insert Volume.." requesters with Lock()
« Reply #1 on: January 04, 2006, 08:47:00 PM »
Thanks Piru, nice and simple...just what I needed.

Quote

You must not Lock() while holding lock of the doslist.


Ooops.. I meant LockDosList(), check for volume, UnlockDosList() then Lock()... honest guv ;-)
On schedule, and suing