Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting current directory
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01431715
Message ID:
01431764
Views:
52
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"
Previous
Reply
Map
View

Click here to load this message in the networking platform