Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 672 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can I create a folder? #479171
02/26/20 08:42
02/26/20 08:42
Joined: Jan 2020
Posts: 4
P
pablomfz Offline OP
Guest
pablomfz  Offline OP
Guest
P

Joined: Jan 2020
Posts: 4
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.

Re: How can I create a folder? [Re: pablomfz] #479442
03/29/20 21:57
03/29/20 21:57
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
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

Last edited by danatrader; 03/29/20 22:00.
Re: How can I create a folder? [Re: pablomfz] #480942
07/26/20 10:00
07/26/20 10:00
Joined: Aug 2016
Posts: 61
D
dr_panther Offline
Junior Member
dr_panther  Offline
Junior Member
D

Joined: Aug 2016
Posts: 61
You could also use the exec function to execute a OS program:

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

Re: How can I create a folder? [Re: dr_panther] #480944
07/26/20 10:54
07/26/20 10:54
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
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.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1