Computing.Net > Forums > Windows 95/98 > DOS filename versus Windows filename

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS filename versus Windows filename

Reply to Message Icon

Name: Aaron
Date: May 21, 2002 at 09:37:39 Pacific
Comment:

Howdy all, I have a file called C-1202xx.xxx and when I search for another file called C-975xxx.xxx I get the 1202 file to pop up in the find window along with the 975 files. Long story short, by right clicking then selecting properties I noticed that the DOS filename does not match the Windows filename. How can this be?? How do I modify it so that they match? It's not any real big deal, just more of a curiosity. I am using Win98 TIA!!



Sponsored Link
Ads by Google

Response Number 1
Name: sam
Date: May 21, 2002 at 09:53:50 Pacific
Reply:

Could you post the two file names please? If the windows filename is 8 characters or less and the extension (after the period) is three characters or less, they should be the same.


0

Response Number 2
Name: sam
Date: May 21, 2002 at 09:55:49 Pacific
Reply:

Could you post the two file names please? If the windows filename is 8 characters or less and the extension (after the period) is three characters or less, they should be the same.


0

Response Number 3
Name: Dave
Date: May 21, 2002 at 10:06:16 Pacific
Reply:

Did you possibly fall victim to the "sulfnbk.exe" virus hoax and delete that file?


0

Response Number 4
Name: Aaron
Date: May 21, 2002 at 13:42:48 Pacific
Reply:

The windows filename is c-1202-coupler.dwg and the dos name is C-9752~1.dwg. I checked for the sulfnbk.exe and found it in C:/Windows/Command.


0

Response Number 5
Name: Jacob
Date: May 21, 2002 at 14:15:51 Pacific
Reply:

DOS only supports up to 8 characters and a 3 character file extension. Example: If yo make a file called 123456789.txt, in dos it will show as 123456~1.txt. If you are using a DOS promt from inside windows, just encase long filenames in quotes like so:
C:\"My Documents"\"My Folder"\myfile.txt
and it should work fine.


0

Related Posts

See More



Response Number 6
Name: Aaron
Date: May 21, 2002 at 16:00:04 Pacific
Reply:

I am fully aware of the Dos 8 character situation, unfortunately that's not what I am currently dealing with. To use your example, if I have a file called 123456789.txt, windows displays it correctly, however the DOS name for the file is abcdef~1.txt. Obviously they do not match, yet they are the same file. Why don't they match, and how do I correct the problem? It's not a major issue except it is screwing up file searches because Windows find it both by the DOS name and the Windows name, which I have pointed out are not even close in appearance.


0

Response Number 7
Name: Hmmm
Date: May 21, 2002 at 19:30:58 Pacific
Reply:

"I am fully aware of the Dos 8 character situation"
If that is true, then you realize that you CAN'T make the 2 filenames match UNLESS the windows one is 2 characters or less. Then they will match.

The windows search does not use, abuse or confuse the dos file name. It is strictly useing the LFN.
If your search is finding the wrong file, I would suggest the search criteria is wrong.

You are using Find Files?
What criteria are you using?


0

Response Number 8
Name: sekirt
Date: May 22, 2002 at 01:58:08 Pacific
Reply:

How or why do you think they are actually the same file?

Did you use DOS to locate both filesnames with the DIR command?

How was each filename created?



0

Response Number 9
Name: Aaron
Date: May 22, 2002 at 06:20:59 Pacific
Reply:

Perhaps this picture will explain better that I have. If you look in the far right column you will see the long file names. Take a close look at the C-1202 files. The fifth file called C-1202-COUPLER.DWG does not match the DOS filename in the far left column. As you can see there are a number of C-1202 files that have longer than 8 characters. I noticed that the DOS truncation only goes up to ~4. So does that mean DOS cannot handle ~5 and up in it's truncation? Windows does use the DOS name when you use the "Find Files or Folders". In otherwords, I am able to find the C-1202-COUPLER.DWG by both it's long filename and DOS name. So basically, comapare the DOS and long file names of the C-1202 files. You will see there is a C-1202~1 through C-1202~4 then it seems to make up it's own filname for the remainder of the C-1202 files.


0

Response Number 10
Name: Aaron
Date: May 22, 2002 at 06:22:38 Pacific
Reply:

Hmmm we'll see if this picture works, otherwise click the homepage link.


0

Response Number 11
Name: Aaron
Date: May 22, 2002 at 06:24:33 Pacific
Reply:

This is it, if this don't work, screw it.

http://photos.yahoo.com/bc/meatpuppeta/lst?.dir=/Strange+computer+tricks&.src=ph&.done=http%3a//photos.yahoo.com/bc/meatpuppeta/vwp%3f.dir=/Strange%2bcomputer%2btricks%26.dnm=filename.jpg%26.src=ph&.view=t


0

Response Number 12
Name: sekirt
Date: May 22, 2002 at 08:28:32 Pacific
Reply:

OK. Great screen shots. Your idea about DOS
only going to 4 files does not seem to be
correct. I created text files in notepad and
saved them as follows: 123456one.txt,
123456two.txt, 123456three.txt, etc; I went
all the way to "six" - and all appear with
the same names in DOS and in Windows. They
are, of course, truncated in DOS, but show
up ~1, ~2, ~3, ~4, ~5, ~6.

Next, I created text files c-1202-one.txt,
etc; Using the same beginning as your files -
still, works. Dos shows 1-6.

I am not going to swim through the MS
knowlegebase, but you may want to.

Make backup copies before trying any
renaming. Rename in windows so that there is
some character unique within the first 6. If
you rename in DOS, you would lose the
benefit of long file names - but there is a
website that has programs to work with long
file names in DOS (LFN).

You might post this to the DOS forum (link -upper left of page)? Maybe someone there knows why.

http://www.odi.ch/prog/lfn/index.php

If your CAD program itself is looking for filenames as they now exist - my answer is, you are out of luck. You'll have to work with both names.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: DOS filename versus Windows filename

How do I unistall Windows... www.computing.net/answers/windows-95/how-do-i-unistall-windows/22219.html

opening DOS programmes from windows www.computing.net/answers/windows-95/opening-dos-programmes-from-windows/96269.html

Running dos/prompt in windows environment www.computing.net/answers/windows-95/running-dosprompt-in-windows-environment/16785.html