View previous topic :: View next topic |
Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Apr 04, 2002 3:33 pm Post subject: Short Filename to Long Filename |
|
|
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 |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Apr 04, 2002 3:54 pm Post subject: |
|
|
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 |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Apr 04, 2002 5:18 pm Post subject: |
|
|
Thanks Tommy! I didn't think of that. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Apr 04, 2002 11:41 pm Post subject: |
|
|
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 |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Apr 05, 2002 12:24 am Post subject: |
|
|
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 |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Apr 05, 2002 12:24 pm Post subject: |
|
|
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 |
|
|
|