Hi,
what does the DOS command LOCK Do???
------------------
"Never underestimate your enemy.."
Printable View
Hi,
what does the DOS command LOCK Do???
------------------
"Never underestimate your enemy.."
i think it's for locking your cdrom
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.
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.
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.."
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.