Discussion Locked

Unable to open files with long extension

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am using NT Server 4.0 . When I go to dos command line with start/run/cmd, and try to open some file using c:\edit , I can't do this if file name extension is > 3 characters. How do I set command line to accept long file extensions ? I wouldlike to know the soln for NT and 98/95.

regards
-mukul

6 replies

by gwb

try using DIR /X on the directory containing the file you want to edit, this will display the 8dot3 format for the filename.
example: DIR /X LONG*.*

will show LONGFI~1.LON longfilename.longext

now use "EDIT LONGFI~1.LON" to open the file (note also that the 'long' filename will be preserved when you edit/save the file)

good luck!

by Former member

Use quaotations..ie..EDIT "LONGFILENAME.LONGEXT"

by aaron v

I like to use VI. I have used several VI clones that handle long file names very well. I have used LEMMY and VIM. Note: Use underscores or dashes in your file names, as some applications, like edit, really do not get along well with spaces in filenames.

This discussion is closed to new replies.