Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting current directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01431715
Message ID:
01431764
Vues:
53
TRY the below and what does the wait window show?
WITH This
	SET STEP ON
	lcDrive=SYS(5)
	lcCurDir=CURDIR()
*!*		lcPathAndFile=lcCurDir + "Dev.txt"
*!*		lcFile=lcDrive + lcPathAndFile
	*IF SYS(2000, lcFile)
                WAIT WINDOW lcDrive + CURDIR()+"DEV.TXT" 
	IF ADIR(adevfile,lcDrive + CURDIR()+"DEV.TXT") > 0
	*IF FILE(lcFile)
	*IF (lcDrive + lcCurDir + "Dev.txt")
		.lDeveloper = .T.	&& Means that the developer file was found. Developer gets more menu choices.
	ELSE
		.lDeveloper = .F.	&& Normal User logging in at his workstation.
	ENDIF
	*** 09/26/2009 Cecil Champenois. Altering data paths.
>>much better, but I'm wondering what CURDIR() returns for him...perhaps he should check the actual path...
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform