Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (flink, AndrewAMD, TipmyPip, 1 invisible), 667 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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