Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
URGENT - How to get the windows directory ????
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00209217
Message ID:
00209224
Views:
15
Thanks for your quickly reply

I see the SysDir Message of Ed Rauh in this foroum with this:
DECLARE INTEGER GetWindowsDirectory IN Win32API ;
	STRING  @cLocation, ;
	INTEGER nSize
LOCAL cLocation, nSize

m.cLocation = SPACE(256)
m.nSize = GetWindowsDirectory(@cLocation, 256)

IF nSize > 0
	*
	* Got it - it's the size of the return
	*
	cLocation = LEFT(m.cLocation,m.nSize)
ELSE
	*
	*  An error occurred when retrieving the value - return the null string
	*
	cLocation = ''
ENDIF
This code works OK!

Thanks again!
Lic. Esteban Bruno
Gerente de Sistemas
TASSO S.R.L.
Previous
Reply
Map
View

Click here to load this message in the networking platform