Click to See Complete Forum and Search --> : Lock command


On_the_flY
June 8th, 2001, 01:30 PM
Hi,
what does the DOS command LOCK Do???

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

ylen13
June 8th, 2001, 01:39 PM
i think it's for locking your cdrom

kd7fhd
June 8th, 2001, 03:12 PM
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.

Vernon Frazee
June 8th, 2001, 06:11 PM
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.

On_the_flY
June 10th, 2001, 10:17 AM
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.."

Vernon Frazee
June 10th, 2001, 10:47 AM
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.