Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,499 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Saving files to Appdata directory #371258
05/19/11 15:57
05/19/11 15:57
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
Hi folks,

A while ago I found out that vista and some other systems, due to security reasons, cannot save files directly into the Program Files folder.

Then I found this dll on the wiki that can identify all kinds of standard locations like Desktop, MyDocuments etc.

I choose to use the AppData folder (in Vista: C:\Users\%username%\AppData\Roaming) because this is probably the most accessible location to save my files (just some text files with a few strings/vars).

I can save text-files directly to the Roaming-folder but I would like to save them to a new folder with the game's name. The problem is that it doesn't create a folder when I define this in the string. I guess I need some kind of windows-command for that, does anyone know how I can achieve this?

Thanks in advance smile

Re: Saving files to Appdata directory [Re: Toon] #371290
05/19/11 18:32
05/19/11 18:32
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
winapi createdirectory function

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


3333333333

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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