468,306 Members | 1,229 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,306 developers. It's quick & easy.

Questions about folders "My Recent Document", "Desktop", "My Pictures",...

1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?

2) How can I find the icon for those files if I want to display it?
Thanks in advance for any helpful suggestions
BTW

Not VB.net but does anyone happen to know how to use XCOPY or COPY to copy
something to the all users folder whatever the name (I have a system in
which it is called "All Users.WINDOWS" and another in which it is called
"All Users"
Nov 20 '05 #1
8 4162
1) Environment.GetFolderPath(Environment.SpecialFolde r.MyPictures)
2) I think you have to use an API call to get the icon, I'm not sure.

" Just Me" <ne********@a-znet.com> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?

2) How can I find the icon for those files if I want to display it?
Thanks in advance for any helpful suggestions
BTW

Not VB.net but does anyone happen to know how to use XCOPY or COPY to copy
something to the all users folder whatever the name (I have a system in
which it is called "All Users.WINDOWS" and another in which it is called
"All Users"

Nov 20 '05 #2
#1 Environment.GetFolderPath(System.Environment.Speci alFolder.MyPictures)

" Just Me" <ne********@a-znet.com> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?

2) How can I find the icon for those files if I want to display it?
Thanks in advance for any helpful suggestions
BTW

Not VB.net but does anyone happen to know how to use XCOPY or COPY to copy
something to the all users folder whatever the name (I have a system in
which it is called "All Users.WINDOWS" and another in which it is called
"All Users"

Nov 20 '05 #3
* " Just Me" <ne********@a-znet.com> scripsit:
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?
'System.Environment.GetFolderPath'.
2) How can I find the icon for those files if I want to display it?


<URL:http://vbaccelerator.com/article.asp?id=4303>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Thank a bunch, especially for the site reference
" Just Me" <ne********@a-znet.com> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?

2) How can I find the icon for those files if I want to display it?
Thanks in advance for any helpful suggestions
BTW

Not VB.net but does anyone happen to know how to use XCOPY or COPY to copy
something to the all users folder whatever the name (I have a system in
which it is called "All Users.WINDOWS" and another in which it is called
"All Users"

Nov 20 '05 #5

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2k************@uni-berlin.de...
* " Just Me" <ne********@a-znet.com> scripsit:
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?


'System.Environment.GetFolderPath'.
2) How can I find the icon for those files if I want to display it?


<URL:http://vbaccelerator.com/article.asp?id=4303>

--

FYI, his code just returns the standard image of a manila folder.
I've been looking and asking for some time and now believe that no one know
how to get, for example, the Desktop icon. Probably someone wrote the code
for Win95 and passed on to MS heaven and no one has since figured out where
the icon is hidden.

Thanks for the reply


Nov 20 '05 #6
This question is mostly for Herfried (his web site explictly asked that
people refrain from sending mail in reference to programming) , but anyone
please feel free to answer.

I followed the link, and tried to create a class in vb, but, I find the
article is incomple when comparing it to the sample application. What I
would like to do, is be able to identitify needed structures when using API
calls, but, I am missing something. I really don't know where to start; I
can lookup up the structures on MSDN and duplicate them for the most part,
it's just I don't understand the naming convertions for the C++ structures
or marshalling (when to do it, what it's for, etc.). Are there any good
articles that teach the basics of Win32 API programming? Can you make a
recommendation on any books? On a side note what does := (Colon Equals) do,
I mean the actual operator?

Thanks in advance,
Jared
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2k************@uni-berlin.de...
* " Just Me" <ne********@a-znet.com> scripsit:
1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?


'System.Environment.GetFolderPath'.
2) How can I find the icon for those files if I want to display it?


<URL:http://vbaccelerator.com/article.asp?id=4303>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #7
* " Just Me" <ne********@a-znet.com> scripsit:
FYI, his code just returns the standard image of a manila folder.
I've been looking and asking for some time and now believe that no one know
how to get, for example, the Desktop icon. Probably someone wrote the code
for Win95 and passed on to MS heaven and no one has since figured out where
the icon is hidden.


OK, then you will have to go deeper into the shell. You will find a
sample for getting icons for desktop etc. here (written in C#):

<URL:http://www.codeproject.com/cs/miscctrl/foldertreeview.asp>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8
On Wed, 30 Jun 2004 14:17:49 -0500, Jared wrote:
would like to do, is be able to identitify needed structures when using API
calls, but, I am missing something. I really don't know where to start; I
can lookup up the structures on MSDN and duplicate them for the most part,
it's just I don't understand the naming convertions for the C++ structures
or marshalling (when to do it, what it's for, etc.). Are there any good
articles that teach the basics of Win32 API programming? Can you make a
recommendation on any books? On a side note what does := (Colon Equals) do,
I mean the actual operator?


If you're interested, I have a class that implements a large number of the
Win32 API calls. I did not write it and can't remember where I found it,
but it is free and you're welcome to it. It could further your learning.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Steve Marshall | last post: by
12 posts views Thread by Jonathan Wood | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.