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 Professional Discussion / Get user location from the registry

Author
Message
A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 1st Sep 2010 17:42
Hey,

I was wondering if anyone could help me with locating the user documents via the registry keys. Im having the problem where I can not write to the files of my program because it has been burnt onto a CD, which I obviously cant modify as rapidly as I need to.

Im just looking for some code which will allow me to set the a variable, e.g. GLOBAL userdocuments$ AS STRING, to the location i need.

If I could get a fast reply that would be great,

Thanks, Arenas

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Sep 2010 18:00
mydocdir$?

A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 1st Sep 2010 18:03
Will that give me the exact location of the documents?

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Sep 2010 18:09
On mine it returns

C:\Users\Karl\Documents.

A r e n a s
18
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 1st Sep 2010 19:47
Ah right Cheers

Login to post a reply

Server time is: 2026-07-24 23:12:39
Your offset time is: 2026-07-24 23:12:39