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

Author Topic: MS-DOS 7.10 and LOCK command to enable/disable direct IO access to disks  (Read 4571 times)

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

    Topic Starter


    Hopeful

    Thanked: 2
    Hi!

    I have longer time installed MS-DOS 7.10 and at installation I enabled drive locking.
    I found software which requires direct disk access and I don't know how to unlock drives.

    I tried:
    - remove LOCK command calling from AUTOEXEC.BAT
    - use command UNLOCK <drive>

    Nothing helped.
    Is possible to disable drive locking for enabling direct disk access?
    Or even toggle enable/disable direct disk access?

    Thank you for each help.
    Miro

    Salmon Trout

    • Guest
    You are using the drive letter and the colon? As in unlock C:      ?

    Do you get any error messages?


    MIRKOSOFT

      Topic Starter


      Hopeful

      Thanked: 2
      Yes, drive letter and colon.

      No any message.
      If I write not correct value it reports:Unlock not successful.

      Miro

      Salmon Trout

      • Guest
      How do you know the drive is actually locked?

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      " Anyone who goes to a psychiatrist should have his head examined. "

      Salmon Trout

      • Guest
      @patio: Yes.

      @Mirkosoft: have you any deleted files in the undelete queue?

      undelete /list

      undelete /purge

      unlock L:
      (where L is your drive letter)

      Note: I do not have an Win95/98 MS-DOS volume to try this on.

      Look here, go down the page to the UNLOCK command notes

      http://www.mdgx.com/newtip3.htm


      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Salmon he's usin FAT 32...it states there the procedure only works per FAT 16

      Just noticed that may only apply to recovery...
      " Anyone who goes to a psychiatrist should have his head examined. "

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      it sounds like you got the functionality backwards. LOCK allows direct disk access. UNLOCK disallows it, as seen by LOCK /? and UNLOCK /?.

      Remember that most DOS applications are not designed to work with FAT32,  using those applications with a FAT32 drive will cause problems.
      I was trying to dereference Null Pointers before it was cool.

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      He also insists on usin DOS 7.1 thru all these headaches instead of finding and purchasing DOS 6.22...

      Just sayin.
      " Anyone who goes to a psychiatrist should have his head examined. "

      MIRKOSOFT

        Topic Starter


        Hopeful

        Thanked: 2
        Used application is designed for MS-DOS and Windows 3x - Windows 95...

        So I think it can work with FAT32.

        Miro

        patio

        • Moderator


        • Genius
        • Maud' Dib
        • Thanked: 1769
          • Yes
        • Experience: Beginner
        • OS: Windows 7
        I am finished with assisting you because you don't listen...
        Best of Luck figuring things out.
        " Anyone who goes to a psychiatrist should have his head examined. "