Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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 | 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