Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows System Directory
Message
De
29/10/2001 12:05:22
 
 
À
29/10/2001 11:59:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00574576
Message ID:
00574580
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform