Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Some help please!!!

Author
Message
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 9th Oct 2003 22:12
I recently made a program called: desktop 2! It places files on your desktop but only if you place the program on your desktop... and i want that the program puts the files on the desktop when you run the program somewhere else to.. but because windows could have more users i don't know how to do it.. can someone help me out here?

(sorry for my bad english, it's because i am dutch.)
PoHa!84
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 10th Oct 2003 00:57
you would have to use the CD command I think. But I've never done exactly what your talking about, so I'm not sure what the exact code would be.

Destroy you with my mind, I could!
. Cool, he is. Play his games, I do.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Oct 2003 01:21
You need to know the logged on user (there's a Windows Dll call, below). Then you would need to navigate through \Documents and Settings\ to the correct directory.



BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 10th Oct 2003 07:52
Hmm, that DLL call is for DBPro isnt it? is there a version for DBC?

Knowladge Belongs To The People...
The Dream Keeper!
21
Years of Service
User Offline
Joined: 9th Oct 2003
Location: Netherlands! HOLLAND!
Posted: 10th Oct 2003 16:41
Thanks!! I haven't tested if the code works jet.. it works on darkbasic right? not only darkbasic pro i mean... Well, cool
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 10th Oct 2003 16:56
Well, looking at it:

That is a DBPro command for specifying Global variables (which DBClassic doesnt have...)

Hope I Helped...

Knowladge Belongs To The People...

Login to post a reply

Server time is: 2025-05-20 17:47:04
Your offset time is: 2025-05-20 17:47:04