Gamestudio Links
Zorro Links
Newest Posts
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
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, 7th_zorro), 877 guests, and 4 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
Path of the user desktop #469901
12/13/17 07:07
12/13/17 07:07
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
How can I detect with lite-C the path of the Desktop of the user?
I want to create a folder on the Desktop of the player and copy some files into it.

Re: Path of the user desktop [Re: preacherX] #469907
12/13/17 09:41
12/13/17 09:41
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
You might wanna check out the windows api, there surely are some functions that can do this. Just google it, I'd be suprised if there aren't a couple of stackoverflow answers which are exatly what you're looking for.


POTATO-MAN saves the day! - Random
Re: Path of the user desktop [Re: Kartoffel] #469910
12/13/17 10:56
12/13/17 10:56
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
I found some stuff but I don't know how to use it in lite-C. When I just copy and paste I get errors... frown

Re: Path of the user desktop [Re: preacherX] #469911
12/13/17 11:34
12/13/17 11:34
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
I found in the manual an example for including the path of the program folder:

exec("%PROG_DIR%acknex.exe","samplesterrain.hmp");

I found so far %PROG_DIR% , %EXE_DIR% and %SAVE_DIR%, are there some others, maybe also some sort of a %DESKTOP_DIR% ???

Last edited by preacherX; 12/13/17 11:41.

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