Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

long name for file

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1161
Location: France

france.gif
PostPosted: Wed Feb 05, 2020 5:10 pm    Post subject: long name for file Reply with quote

I see in wiki for AVR-dos :
• Short file name (8.3)
• Files with a long file name can be accessed by their short file name alias

my question :

I need the same id_number for 2 files the fist is for exemple : 12345678P.TXT the second 12345678S.TXT

the id_number change all time, it is send to me by user but always with 8numbers and 1 letter
so how could i use alias ?


Rolling Eyes JP

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Wed Feb 05, 2020 8:32 pm    Post subject: Reply with quote

you can simply test that.
create 2 files and then check with DIR /X :

123456~1.TXT 12345678P.TXT
123456~2.TXT 12345678S.TXT

Thus 123456~1.TXT is the short for 12345678P.TXT

I did not test what happens if you copy the files to a different PC and if the long info get lost. i guess so since the long name is stored in a table. it depends on the kind of FAT. FAT32 probably saves this info.
I say probably since i did not look longer into it than 1 minute.

it is much better to use a naming method yourself.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum