How can I create a folder?

Posted By: pablomfz

How can I create a folder? - 02/26/20 08:42

Hi,

it is a very basic question but I haven't found how to do it. I can create, copy files,etc without any issue but how can I create a new folder using lite-c to store some reports?

Thank you!

Pablo.
Posted By: danatrader

Re: How can I create a folder? - 03/29/20 21:57

You may include the standard Windows API and use the functions available there.

Here is options for doing so:

https://stackoverflow.com/questions/9235679/create-a-directory-if-it-doesnt-exist/37524002
Posted By: dr_panther

Re: How can I create a folder? - 07/26/20 10:00

You could also use the exec function to execute a OS program:

exec ("cmd /c mkdir C:\\Zorro\\test2","", 0);
Posted By: danatrader

Re: How can I create a folder? - 07/26/20 10:54

Originally Posted by dr_panther
You could also use the exec function to execute a OS program:

exec ("cmd /c mkdir C:\\Zorro\\test2","", 0);



That's actually a really neat one.
© 2024 lite-C Forums