Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Akow, Quad, 7th_zorro, VoroneTZ), 800 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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