LOCKDRV: A DOS-Mode Drive Lock Utility for OS/2 Written by: George Fulk and Doug Azzarito (c) Copyright International Business Machines Corporation 1994. All rights Reserved. This program will allow DOS programs to gain direct access to disk drives under OS/2. Without this utility, programs that attempt to write directly to disk will fail (disk editors, defragmentation utilities, etc). WARNING: Using utilities such as disk editors and defragmentation utilities can cause data loss! Do not use any "direct access" programs unless you have backed up all data on your drive! SYNTAX: LOCKDRV drivelist command-line where: drivelist is a list of drive letter(s) to be locked. Specify any FAT partition on your system that is not in use. command-line is the normal DOS command line to execute with drives locked. example: to run the command XYZ.EXE with drives C: and E: locked, use the command: LOCKDRV CE XYZ.EXE When you run LOCKDRV, you will see a message for each drive letter you specify in the drive list. If everything goes well, the messages will all look like: Drive C: locked. If any of the drives specified are invalid, or cannot be locked (because another application under OS/2 is using the drive), the 'command-line' will be ignored, all previously locked drives will be unlocked, and you'll see a message like: Drive C: could not be locked. If you specify the same drive twice in the drivelist (for example: LOCKDRV CC XYZ.EXE), you will see a message like: Drive C: locked. Drive C: already locked. The command will continue, ignoring the second attempt to lock a drive. While the 'command-line' is running, attempts to access any of the locked drives from another process will result in the following message: SYS0108: The specified disk is in use or locked by another process. NOTE: This utility WILL NOT WORK on any version of OS/2 before 2.11 The ability to lock drives under DOS did not exist in OS/2 versions prior to 2.11.