[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] NT Desktop Path



Hi Glenn,

You can determine the path to the desktop by looking at the registry key

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders

In there is an entry for 'Desktop'. Dig down using regedit and you'll
see it.

I don't know if this is consistent for all versions of windows. It
exists in Win2000 anyway...

Cheers,
Jay.

dubz@nospam.progsoc.uts.edu.au wrote:
> 
> Hey,
> 
> Coding away in Delphi this morning, and I need to throw up an Open Dialog to
> open a file sitting on the desktop. Problem is that the application is launched
> from a network drive, and when they go to open the file they always have to
> click on the dropdown and scroll up to Desktop. It's annoying.
> 
> What I'd like to do is set the initial directory to the Desktop. Therefore what
> I need is an environment variable (or something) that tells me what the path is
> to the current desktop.
> 
> Guesses welcome.
> 
>    gleNN
> -
> You are subscribed to the progsoc mailing list. To unsubscribe, send a
> message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
> If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

--
Jay Banyer
Computer Systems Operator
James Cook University, Townsville
(07) 4781 6395
-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.