Page 1 of 1

GETCURDIR() FUNC IS NOT WORKING ON D DRVIE

Posted: Tue Dec 31, 2019 7:46 am
by shri_fwh
Dear All ,

The GETCURDIR() function is NOT working on D: Drive but is working C: perfectly.

I have tried below two option both are NOT working on D: Drive.

Could you please help me for the same. Thanks in advance...!

Opt A

Code: Select all


   cAppDir := GETCURDIR()
 
Opt B

Code: Select all


  cAppDir := CurDrive() + ":\" + CurDirX()


Re: GETCURDIR() FUNC IS NOT WORKING ON D DRVIE

Posted: Tue Dec 31, 2019 10:02 am
by nageswaragunupudi
Folder containing the Exe file. This may or may not be the current directory

Code: Select all

? cFilePath( ExeName() )
 
Current drive and directory:

Code: Select all

? TrueName( ".\" )

Re: GETCURDIR() FUNC IS NOT WORKING ON D DRVIE

Posted: Tue Dec 31, 2019 11:52 am
by shri_fwh
Dear Rao Sir ,

Thanks a lot...! Now Its working...!