Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / In Windows, save file that all users can access

Author
Message
Jambo B
14
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 16th May 2015 16:16
Hello all,

I wondered if there was a way to save a file in an area accessible by all users, e.g. %allusersprofile% rather than %localappdata%.

I need to store a config file.

Thanks,

James
fog
20
Years of Service
User Offline
Joined: 5th Oct 2003
Location: Newcastle, England
Posted: 16th May 2015 22:56 Edited at: 16th May 2015 22:57
You can use SetRawWritePath()

http://www.appgamekit.com/documentation/Reference/File/SetRawWritePath.htm

Read the description for SetFolder() to see what it does, limitations etc.

http://www.appgamekit.com/documentation/Reference/File/SetFolder.htm

Jambo B
14
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 17th May 2015 03:09
Thanks for your reply, fog.

I've used those commands before, but I think what I'm looking for doesn't currently exist within AGK. It would be nice to be able to use a command like 'SetRawReadWritePathToAllUsers()' to be able to store/read data in %allusersprofile%\AGK\MyApp or whatever.

I realise that I could hard-code this to c:\path, but it would fail if the computer's directory structure was different from the default Windows setup.

James

Login to post a reply

Server time is: 2024-06-29 02:59:21
Your offset time is: 2024-06-29 02:59:21