Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Short DOS names
Message
De
09/02/1999 23:17:15
 
 
À
09/02/1999 23:13:26
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00179850
Message ID:
00185826
Vues:
27
>Thanks, Ed, for this routine. I had occassion to need it today, and it's perfect.
>
>>
>>LPARAMETER cPathToConvert
>>DECLARE INTEGER GetShortPathName IN Win32API ;
>>  STRING  @cLongPath, ;
>>  STRING  @cShortPathBuff, ;
>>  INTEGER nBuffSize
>>LOCAL cBuf, nBufSize, nShortSize
>>cBuf= space(511)
>>nBufSize = 511
>>nShortSize = GetShortPathName(cPathToConvert,@cBuf,@nBufSize)
>>IF nShortSize > 0
>>	RETURN LEFT(cBuf,nShortSize)
>>ELSE
>>	RETURN ''
>>ENDIF
>>
Thanks. it's mazing at how many things are really pretty easy once you play around with the Win32 API a bit!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform