Lock command
Results 1 to 6 of 6

Thread: Lock command

  1. #1
    Join Date
    Jun 2001
    Posts
    3

    Lock command

    Hi,
    what does the DOS command LOCK Do???

    ------------------
    "Never underestimate your enemy.."
    "Never underestimate your enemy.."

  2. #2
    Join Date
    Feb 2000
    Location
    somewhere on the planet earth.
    Posts
    1,649
    i think it's for locking your cdrom

  3. #3
    Join Date
    May 2001
    Location
    Laramie, Wyoming
    Posts
    33
    I don't believe there ever was a lock command for dos.

    Like ylen13 said, it's probably a program released by one of the cd-rom manufacturers to lock the tray of your cd-rom.

  4. #4
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    If I'm not mistaken the LOCK and UNLOCK commands were introduced with Windows 95. Issuing the LOCK command locks a drive, enabling direct disk access for an application. The UNLOCK command unlocks a drive, disabling direct disk access for an application.

    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

  5. #5
    Join Date
    Jun 2001
    Posts
    3
    thank u for ur reply but could you please provide me with some explnation..I've tried the help but could not understand..What do u mean by direct access??? pls help..

    ------------------
    "Never underestimate your enemy.."
    "Never underestimate your enemy.."

  6. #6
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    Windows 9x/Me does not support MS-DOS-based or Windows 3.1-based utilities that perform direct disk writes. Direct disk writes using the MS-DOS read sector (INT 26h) or absolute read sector (INT 13h) interfaces will fail unless the application has locked the volume for exclusive use. This is necessary in a multi-tasking environment to prevent disk corruption from multiple utilities running simultaneously or prevent loss of long file names by applications that are not long file name aware.
    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •