GETCURDIR() FUNC IS NOT WORKING ON D DRVIE

GETCURDIR() FUNC IS NOT WORKING ON D DRVIE

Postby shri_fwh » Tue Dec 31, 2019 7:46 am

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  Expand view


   cAppDir := GETCURDIR()
 


Opt B
Code: Select all  Expand view


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

Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

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

Postby nageswaragunupudi » Tue Dec 31, 2019 10:02 am

Folder containing the Exe file. This may or may not be the current directory
Code: Select all  Expand view

? cFilePath( ExeName() )
 


Current drive and directory:
Code: Select all  Expand view

? TrueName( ".\" )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby shri_fwh » Tue Dec 31, 2019 11:52 am

Dear Rao Sir ,

Thanks a lot...! Now Its working...!
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests