The Daily Click ::. Forums ::. Klik Coding Help ::. How do I save my array in appdata windows folder?
 

Post Reply  Post Oekaki 
 

Posted By Message

Danilo Dias



Registered
  29/06/2010
Points
  5
17th June, 2012 at 17/06/2012 17:55:18 -

Hi guys!
I'm having a problem with my game. Ineed to save the array files (for the savegame function) inside the appdata folder in windows.
Something like this appdata\Company\Game\save

How do I do that?
I just know how to save in appfolder like: Appdrive$+Appdir$+"/DATA/save"


Is anyone know how to do that?

I need this because this way I'll not need to set execution level to administrator in order make my game save stuff even if the game directory is in program files for example. All the save data will be in appdata
Thanks!

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
18th June, 2012 at 18/06/2012 04:19:55 -

Apppath$+"Company\Game\save\savefile.arr"

Make sure the directories exist. You can check and then create them if they don't with the file object.

 
n/a

Danilo Dias



Registered
  29/06/2010
Points
  5
18th June, 2012 at 18/06/2012 17:24:59 -

Thanks Chris! It's Working!!!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click