Microsoft KB Archive/61848

From BetaArchive Wiki
Knowledge Base


How to Swap Drive Letters with ASSIGN

Article ID: 61848

Article Last Modified on 11/25/2003



APPLIES TO

  • Microsoft MS-DOS 3.1
  • Microsoft MS-DOS 3.2 Standard Edition
  • Microsoft MS-DOS 3.21 Standard Edition
  • Microsoft MS-DOS 3.3 Standard Edition
  • Microsoft MS-DOS 3.3a
  • Microsoft MS-DOS 4.0 Standard Edition
  • Microsoft MS-DOS 4.01 Standard Edition
  • Microsoft MS-DOS 5.0 Standard Edition
  • Microsoft MS-DOS 5.0a



This article was previously published under Q61848

SUMMARY

You can use the ASSIGN program to swap the drive letter names for any defined drive (that is, a drive that actually exists on your machine). For example, to swap the drive letter names for drives D and E, type the following:

ASSIGN d=e e=d


To return the drive names to the original names, type the following:

ASSIGN <ENTER>


NOTE: The ASSIGN program is available in MS-DOS 5.0 and earlier. If you have a later versions of MS-DOS you can obtain the ASSIGN program with the Microsoft MS-DOS Supplemental Disk. You can obtain the MS-DOS Supplemental Disk by using the coupon located in the back of your printed MS-DOS documentation.

MORE INFORMATION

Some programs, including Microsoft Windows, can have problems when drive letters are changed using ASSIGN. In particular, do not change drive letter assignments when a program is active. For additional information about this process, see the comments in the "Microsoft MS-DOS User's Guide" and "Microsoft MS-DOS User's Reference" about using ASSIGN with commands that require drive information.


Additional query words: 3.20 3.21 3.30 3.30a 4.00 4.01 5.00 5.00a

Keywords: KB61848