Finding the desktop directory

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Finding the desktop directory

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:37 pm

by bob >> Fri, 1 Mar 2002 1:08:17 GMT

How can I find certain system directories?
for example desktop,windows\system, etc.

(Like right click on a icon and selecting send to desktop but I cant find the desktop folder without hard coding the path.)

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Finding the desktop directory

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:37 pm

by cdshearer >> Fri, 1 Mar 2002 3:28:27 GMT

Hi "bob"

Have a look at the Windows API function: SHGetSpecialFolderLocation

That should help you out.

"Fred"


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 21 guests

cron