473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 4397
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Todd Peterson | last post by:
I'm encountering some wierd behavior with a <link> tag over an HTTPS connection, vs. an HTTP connection... In an ASP/HTML page on my website, I've add a <link rel="shortcut icon"...> in order to...
0
by: Bob Sanford | last post by:
I am working with php scripting under an apache-based web service in Windows. The "allow service to interact with desktop" feature is NOT checked for this service, and I don't want it to be. But I...
4
by: Ray Stevens | last post by:
Is it possible to place a company icon (logo) in the browser address field so that if a user copies it as a shortcut to his desktop the icon will be there. For example, like this:...
6
by: Lee | last post by:
how can i do this? I have a form, which i do not want to keep on top of all others (TopMost), yet i dont want it dissapearing when the "show desktop" button is pressed. Now i know that the...
8
by: Steve Marshall | last post by:
Hi All, Is it possible to set the InitialDirectory property of an OpenFileDialog so it will open at the "My Computer" level? I want it to open showing all the available drives. If so, what do...
6
by: prodsd | last post by:
Here is my challenge . I have a new syatem That when I save a Adobe Illustrator file to my desktop it is ok but when I try to move or delete the file I get a error key that is open ??? I never had...
5
by: Noozer | last post by:
I'm looking for a "smart folder" program to run on my Windows XP machine. I'm not having any luck finding it and think the logic behind the program is pretty simple, but I'm not sure how I'd...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
12
by: Jonathan Wood | last post by:
Greetings, I wonder if anyone can help me with this. I have an XP laptop, and a Vista desktop computer. I use the laptop to run software remotely on the desktop using the Remote Desktop...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.