Problem with LMKDIR()

Problem with LMKDIR()

Postby driessen » 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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Problem with LMKDIR()

Postby FiveWiDi » Wed Feb 22, 2012 1: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 24.02 + Harbour 3.2.0dev (r2403071241), BCC 7.7 Windows 10
FiveWiDi
 
Posts: 1189
Joined: Mon Oct 10, 2005 2:38 pm

Re: Problem with LMKDIR()

Postby ukoenig » Wed Feb 22, 2012 4: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Problem with LMKDIR()

Postby StefanHaupt » Thu Feb 23, 2012 6: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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: Problem with LMKDIR()

Postby Antonio Linares » Thu Feb 23, 2012 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42087
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 76 guests