Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path stretcher?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00887257
Message ID:
00887867
Views:
9
Perfect! Thank you!

>>Is there a command that will turn this
>>-> "C:\DOCUME~1\USERID\LOCALS~1\TEMP\"
>>into this
>>-> "C:\DOCUMENTS AND SETTINGS\USERID\LOCAL SETTINGS\TEMP\"
>>
>>I thought there was, but I can't find it now. TIA
>
>
>DECLARE integer GetLongPathName IN WIN32API ;
>	string @ lpszShortPath, string @ lpszLongPath, integer cchBuffer
>
>#define MAXPATH 267
>STORE SPACE(MAXPATH) TO lpszLongPath
>lcPath = "C:\DOCUME~1\USERID\LOCALS~1\TEMP\"
>lnLen = GetLongPathName(m.lcPath,@lpszLongPath,MAXPATH)
>if lnLen > 0
> ? SUBSTR(lpszLongPath,1,lnLen)
>else
> ? 'Path invalid'
>endif
Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform