Recent

Author Topic: CreateDir two mapps not working![SOLVED]  (Read 1161 times)

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
CreateDir two mapps not working![SOLVED]
« on: May 28, 2018, 12:11:04 am »
Hi Friends. Windows question?
I try to create a directory  with Lazarus/FreePascal  CreateDir ('C:\ProgramData\Mycompany\MyPascalApp\'); but it won't work!
It will work if I exclude the last map like this: CreateDir ('C:\ProgramData\Mycompany\');
C:\ProgramData already exist in Windows.
It seems to me that CreateDir only can create one mapp and not two mapp or a mapp in a mapp!

I can't figure it out!
Are there someone smart, that can help me understand what's wrong?

Thanks in advance.
Best regards
Bob
« Last Edit: May 28, 2018, 12:50:55 am by R.Blennerhed »
Rob

wp

  • Hero Member
  • *****
  • Posts: 11857
Re: CreateDir two mapps not working!
« Reply #1 on: May 28, 2018, 12:19:53 am »

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 328
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: CreateDir two mapps not working![SOLVED]
« Reply #2 on: May 28, 2018, 12:54:47 am »
Thanks wp. Great.It works perfectly. :D
Have a nice week.
Best regards
Bob
Rob

 

TinyPortal © 2005-2018