Path of the user desktop

Posted By: preacherX

Path of the user desktop - 12/13/17 07:07

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.
Posted By: Kartoffel

Re: Path of the user desktop - 12/13/17 09:41

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.
Posted By: preacherX

Re: Path of the user desktop - 12/13/17 10:56

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
Posted By: preacherX

Re: Path of the user desktop - 12/13/17 11:34

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% ???
© 2024 lite-C Forums