[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSTemporaryDirectory() && Windows
From: |
Lloyd Dupont |
Subject: |
Re: NSTemporaryDirectory() && Windows |
Date: |
Wed, 11 May 2005 10:15:36 +1000 |
For additional information you could transform short path name to long (on
Windows)
with:
GetLongPathName(...)
see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getlongpathname.asp
----- Original Message -----
From: "Sheldon Gill" <sheldon@westnet.net.au>
To: "Marc Brünink" <mbruen@smartsoft.de>
Cc: <discuss-gnustep@gnu.org>
Sent: Wednesday, May 11, 2005 9:37 AM
Subject: Re: NSTemporaryDirectory() && Windows
Marc Brünink wrote:
Hi folks,
on my Windows machine NSTemporaryDirectory() returns a string like:
~C/DOKUME~1/ADMINI~1/....
So this is the old DOS representation of names which are longer than 8
characters.
That is correct.
Type 'set' at the command prompt on your windows machines and you'll see
that TEMP is uses 8.3 paths
How to convert this string to a nice one like:
c:\Dokumente und Einstellungen\Administrator\..
Does any method exist which implements this conversion?
There is no method in -base you can use for this.
As a matter of interest, why do you want a user presentable path for the
temporary directory?
Isn't it a bit outdated to return a MS-DOS 5.x string?
Backwards compatibility with MS-DOS is a Windows feature.
Regards,
Sheldon
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep
- NSTemporaryDirectory() && Windows, Marc Brünink, 2005/05/10
- Re: NSTemporaryDirectory() && Windows, Sheldon Gill, 2005/05/10
- Re: NSTemporaryDirectory() && Windows,
Lloyd Dupont <=
- Re: NSTemporaryDirectory() && Windows, Marc Brünink, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Richard Frith-Macdonald, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Sheldon Gill, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Marc Brünink, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Richard Frith-Macdonald, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Marc Brünink, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Richard Frith-Macdonald, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Alex Perez, 2005/05/11
- Re: NSTemporaryDirectory() && Windows, Marc Brünink, 2005/05/12
- Re: NSTemporaryDirectory() && Windows, Marc Brünink, 2005/05/12