P
petitehs
Hi,
Does anyone know how to change the file's short (8.3) name?
I cannnot find the way anywhere including MSDN.
I know how to get the long name and the short name of the files.
(using GetLongPathName() and GetShortPathName())
Unfortunately, what I want to do is not to GET the short file name, but to
SET the short file name.
For example, assume that I create a file named "My Data File.dat".
Then this file is automatically assigned with the short name "MYDATA~1.DAT".
(Of course, the short name is hidden in common condition.)
Now, I want to change the short name to "MDF_01.DAT", how can I do that?
(Sure, the long file name must be kept in its original name.)
I know there is a function SetFileShortName() that may be the one I'm
looking for,
but this function is only available in Windows XP or Server 2003.
(I cannot test this function. My system is Windows 2000.)
Is there no way to solve this problem?
Thanks in advance,
petitehs.
Does anyone know how to change the file's short (8.3) name?
I cannnot find the way anywhere including MSDN.
I know how to get the long name and the short name of the files.
(using GetLongPathName() and GetShortPathName())
Unfortunately, what I want to do is not to GET the short file name, but to
SET the short file name.
For example, assume that I create a file named "My Data File.dat".
Then this file is automatically assigned with the short name "MYDATA~1.DAT".
(Of course, the short name is hidden in common condition.)
Now, I want to change the short name to "MDF_01.DAT", how can I do that?
(Sure, the long file name must be kept in its original name.)
I know there is a function SetFileShortName() that may be the one I'm
looking for,
but this function is only available in Windows XP or Server 2003.
(I cannot test this function. My system is Windows 2000.)
Is there no way to solve this problem?
Thanks in advance,
petitehs.