Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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