SS64 Discussion Forum

You are not logged in.

#1 2010-01-11 19:12:58

choz
New Shoes
Registered: 2009-12-21
Posts: 7

How to get the real file names of strange files?

Say I have this folder with these files in it:

C:\strange files\
cæsar's.jpg
file°.txt
file¹.txt
reports—jan.zip
sométhing.dll
ÿûÞ.txt

If I run this command:

dir "C:\strange files\*" /b > c:\test.txt

The contents of c:\test.txt would be:

c'sar's.jpg
fileø.txt
file1.txt
reports-jan.zip
som‚thing.dll
˜–_.txt

Why is this happening and is there any way to get the real file names? roll

Offline

#2 2010-02-07 21:13:13

andre lipke
New Shoes
Registered: 2009-11-25
Posts: 5

Re: How to get the real file names of strange files?

this is caused by font the default cmd font is terminal so cirtan characters look different or there not suported

Offline

#3 2010-02-10 22:30:27

Drewfus
8088
From: Australia
Registered: 2010-01-10
Posts: 31

Re: How to get the real file names of strange files?

What is your code page?

Enter this command to check;

> chcp

Last edited by Drewfus (2010-02-10 22:31:44)

Offline

#4 2010-03-21 08:10:32

andre lipke
New Shoes
Registered: 2009-11-25
Posts: 5

Re: How to get the real file names of strange files?

437 is mine and those characters show up the same

Offline

Board footer

Powered by FluxBB