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:
00887499
Views:
9
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform