FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with LMKDIR()
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Problem with LMKDIR()
Posted: Wed Feb 22, 2012 12:09 PM

Hello,

Is there a known problem with LMKDIR() ?

I use it in my application to make different folders. I tested it here on my PC's with Windows XP, Windows 7 32-bits and Windows 7 64-bits.

I noticed no problem here.

But some customers are complaining that the folders are not created by my application. And it suddenly started a few days ago.

Someone any idea ?

Thanks a lot in advance for any help.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 1446
Joined: Mon Oct 10, 2005 02:38 PM
Re: Problem with LMKDIR()
Posted: Wed Feb 22, 2012 01:24 PM
driessen wrote:Hello,

Is there a known problem with LMKDIR() ?

I use it in my application to make different folders. I tested it here on my PC's with Windows XP, Windows 7 32-bits and Windows 7 64-bits.

I noticed no problem here.

But some customers are complaining that the folders are not created by my application. And it suddenly started a few days ago.

Someone any idea ?

Thanks a lot in advance for any help.


Michel,

I have the same problem. I decided to use LMKDIR () when I launch my application and when ended.
When I launch it again then existing folders.

Sorry for my english.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Problem with LMKDIR()
Posted: Wed Feb 22, 2012 04:04 PM
Michel,

maybe these Customers are trying to create Folders on C ?
They could have Problems with Administrator-rights ( not possible to create on C )

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: Problem with LMKDIR()
Posted: Thu Feb 23, 2012 06:35 AM

Michel,

you can use MakeDir () from xHarbour. It returns the Dos errorcode, so you can check, what went wrong.

Dos error 0 -> success
Dos error 5 -> Dir exists

kind regards

Stefan
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problem with LMKDIR()
Posted: Thu Feb 23, 2012 07:48 AM
Michel,

FWH function lMkDir() returns a logical value that it will be true if the function succeeds. This function is just a C wrapper to Windows API CreateDirectory():

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363855(v=vs.85).aspx

You could use the returned value to know if it was possible or not to create the folder. If not, you can call function GETERRMSG() to retrieve the error description.

As it has been pointed on this thread, a normal usar does not have the right to create folders everywhere. It is only allowed on his user folder or at some public common places.
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion