Microsoft KB Archive/103168

From BetaArchive Wiki
Knowledge Base


Article ID: 103168

Article Last Modified on 9/30/2003



APPLIES TO

  • Microsoft LAN Manager 2.0 Standard Edition
  • Microsoft LAN Manager 2.1 Standard Edition
  • Microsoft LAN Manager 2.1a
  • Microsoft LAN Manager 2.2 Standard Edition



This article was previously published under Q103168

SYMPTOMS

Files with reserved device names (LPTx, COMx, PRN, etc.) exist on your LAN Manager disk volumes. They cause problems when you are setting access privileges or creating backups, but you cannot get rid of them using File Manager and/or standard commands such as DEL.

CAUSE

These filenames usually are created when an application opens a file instead of a device.

RESOLUTION

You can't remove these files using OS/2, but you can delete them using an MS-DOS workstation and the QBASIC interpreter from MS-DOS 5.0 or later.

Command sequence:

   net use z: \\<server>\<share>     ; Share the appropriate
                                      location
  z:                    ; Select default drive
  cd <path>               ; Select appropriate location
  qbasic               ; Start QBASIC from MS-DOS
  enter : kill "z:<file>"     ; Enter this line in the
                                interpreter
  select : shift + f5          ; Start execution of the code
                

This deletes <file> from the shared location.

Repeat this command for each file with a reserved name.


Additional query words: prn, lpt, com, dev 2.00 2.10 2.10a 2.20 2.2 2.1 2.1a

Keywords: KB103168