forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Short Filename to Long Filename

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Apr 04, 2002 3:33 pm    Post subject: Short Filename to Long Filename Reply with quote

Is there a way to go from a short filename (C:\Progra~1\MyDocu~1.txt)
to a long file name (C:\Program Files\My Document.txt) ?

Thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Thu Apr 04, 2002 3:54 pm    Post subject: Reply with quote

Should be easy enough:

Code:

  info @file(C:\PROGRA~1,D)


Tommy


Last edited by Tommy on Wed Apr 24, 2002 12:23 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Thu Apr 04, 2002 5:18 pm    Post subject: Reply with quote

Thanks Tommy! I didn't think of that. Confused
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Apr 04, 2002 11:41 pm    Post subject: Reply with quote

Did it work???


-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Apr 05, 2002 12:24 am    Post subject: Reply with quote

Doesn't work for me. It gives me half long name, half shortname.

I went two folders deep, like

c:\progra~1\Internet Explorer

The last half comes out as long file name, but the first half comes as short file name.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Apr 05, 2002 12:24 pm    Post subject: Reply with quote

You're right Garrett, it happens for me too. I probably see why it does that now. It only sees the last part of the directory as the "filename" to work with, so you probably should only use it for true files and not for file paths anyway, unless you can break the parts in chunks first and process them one by one.

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
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 can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group