Page 1 of 1
[Solved] GetCurrentDirName replacement.
Posted: Fri Sep 25, 2015 10:39 am
by AmiDARK
Hello,
As the function is no more available in 53.30, does someone know a method to get the "current directory name" ?
Thank you.
Re: GetCurrentDirName replacement.
Posted: Fri Sep 25, 2015 10:46 am
by thomasrapp
NameFromLock (GetCurrentDir(),buffer,buffer_size);
Re: GetCurrentDirName replacement.
Posted: Fri Sep 25, 2015 11:10 am
by AmiDARK
Thank you thomasrapp.
I was not sure about this function.
Regards,
AmiDARK
Re: [Solved] GetCurrentDirName replacement.
Posted: Fri Sep 25, 2015 11:41 am
by salass00
The GetCurrentDirName() function has just been renamed to GetCliCurrentDirName() (there is a compatibility macro in <dos/obsolete.h> as well) but because there are some problems with this function (see the dos.library autodoc) it is recommended to use GetCurrentDir() and DevNameFromLock() or NameFromLock() instead in new code.