Managing Long File Names (Lab)
- In Windows NT Explorer, click the icon for drive C.
- On the File menu, point to New, and then click Folder Name the Folder Long File Names.
- Inside this folder create the following text documents using
Windows NT Explorer:
- Long filename.lab.exercise1
- Long filename.exercise1.lab
- Longfilename.exercise1.lab
- Exercise1.long filename.lab
- Lab.long filename.exercise1
- Test.txt
- At a command prompt, change to the root directory (C:\). Use
the dir /x command to list the root directory. How does the folder that you just created appear in the directory list.
_____________________________________________________________
- Change into the directory that you created.
- type dir /x to list the directory.
Short File Name             |
Long File Name             |
  |   |
  |   |
  |   |
  |   |
  |   |
  |   |
  |   |
- Why does the file Text.txt have two extensions.
_____________________________________________________________
- Rename LONGFI~1.TXT to LFN.LAB by typing ren LONGFI~1.TXT LFN.LAB and pressing enter.
- List the directory again and note the file name and alias. What
happened to the file name and alias of the file you renamed?
_____________________________________________________________
- Type ren "long filename.exercise1.lab.txt" LONG.TXT
(Be sure to use quotation marks around the long file name because the ren command does not recognize blank spaces.
- List the directory again. What happened to the file name and
alias of the file you renamed?
______________________________________________________________
- Type ren LONG.TXT Long.Txt.
- List the directory again. What happened to the file name and
alias of the file you renamed?
______________________________________________________________
- Why does Long.Txt have an alias while LONG.TXT did not?
______________________________________________________________