Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows System Directory
Message
From
29/10/2001 12:05:22
 
 
To
29/10/2001 11:59:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00574576
Message ID:
00574580
Views:
18
Hi,
You can use the GetSystemDirectory function of the windows API:
PROCEDURE GetSystemDirectory
	*-- returns the path of the Windows System directory

	DECLARE Integer GetSystemDirectory IN Win32API;
	                String @cWinDir, Integer iSize

	LOCAL lcSysDir, lnSize

	lnSize   = 100
	lcSysDir = SPACE(lnSize)

	lnRetVal = GetSystemDirectory(@lcSysDir, lnSize)

	IF lnRetVal > 0
		RETURN LEFT(lcSysDir, lnRetVal)
	ELSE
		RETURN ""
	ENDIF

ENDPROC
>Hi all:
>
>1) Is there some command/method by which i can get the full path of the Windows System Directory of a PC ?
>
>2) Is there some problem with accessing the DOWNLOADS section on the Login screen ? On clicking, it just refreshes the screen.
>
>tks in advance
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform