Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change SaveDir to MyDocuments Path under Vista #251311
02/12/09 14:31
02/12/09 14:31
Joined: Feb 2006
Posts: 324
Germany
M
maybenew Offline OP
Senior Member
maybenew  Offline OP
Senior Member
M

Joined: Feb 2006
Posts: 324
Germany
I need to change the SaveDir at after launching the engine to the Users My Documents directory.
Is there any way to do that?
is save_dir read only?

Re: Change SaveDir to MyDocuments Path under Vista [Re: maybenew] #251315
02/12/09 14:45
02/12/09 14:45
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
str_cpy(save_dir, "C:\\Documents and Settings\\Bla\\Documents");

Last edited by Michael_Schwarz; 02/12/09 14:45.

"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: Change SaveDir to MyDocuments Path under Vista [Re: Michael_Schwarz] #251318
02/12/09 14:51
02/12/09 14:51
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: Michael_Schwarz
str_cpy(save_dir, "C:\\Documents and Settings\\Bla\\Documents");


Wrong. "C:\\Users\\Bla\\Documents".

Re: Change SaveDir to MyDocuments Path under Vista [Re: Cowabanga] #251322
02/12/09 15:01
02/12/09 15:01
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
differs from xp to vista

i dont know if that works in GS but you can try enviroment variables like

%USERPROFILE%
%HOME_DIR% ->(im not sure about that check it.)


3333333333

Moderated by  old_bill, Tobias 

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