473,320 Members | 1,987 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.

Need to make a folder that will show in everyones MyDocuments

In a prior post I asked about referencing the folder "My Documents"

and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.

Is there a reference to such a thing??

Thanks

Dec 29 '06 #1
8 2722

" Franky" <fr***********@a-znet.comwrote in message
news:ed*************@TK2MSFTNGP02.phx.gbl...
In a prior post I asked about referencing the folder "My Documents"

and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.
Why? They are already there under "C:\Documents and Settings\<users>"

By the way, you will need local Administrator privileges to look at other
people's documents.

Brian

Dec 29 '06 #2
>In a prior post I asked about referencing the folder "My Documents"
>and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.
Have you tried CSIDL_COMMON_DOCUMENTS?

Dave
Dec 29 '06 #3

" Franky" <fr***********@a-znet.comwrote in message
news:ed*************@TK2MSFTNGP02.phx.gbl...
In a prior post I asked about referencing the folder "My Documents"

and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.

Is there a reference to such a thing??
I don't think so. The All Users' My Documents folder, called Shared
Documents, doesn't appear to be merged with the user My Documents like the
All Users' Desktop or Start Menu.

You can get an item to appear in the logical "My Documents" view using a
shell namespace extension, of course. That may be far more trouble than
it's worth to you. You could also drop a shortcut in the Default User's My
Documents, which will cause every new profile created to include the
shortcut, and then also create the shortcut in existing profiles as desired.
>

Thanks

Dec 29 '06 #4
Thanks

I'm not where I can try anything out.

Would you please comment on what CSIDL_COMMON_DOCUMENTS is for

Franky

"Ben Voigt" wrote:
>
" Franky" <fr***********@a-znet.comwrote in message
news:ed*************@TK2MSFTNGP02.phx.gbl...
In a prior post I asked about referencing the folder "My Documents"

and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.

Is there a reference to such a thing??

I don't think so. The All Users' My Documents folder, called Shared
Documents, doesn't appear to be merged with the user My Documents like the
All Users' Desktop or Start Menu.

You can get an item to appear in the logical "My Documents" view using a
shell namespace extension, of course. That may be far more trouble than
it's worth to you. You could also drop a shortcut in the Default User's My
Documents, which will cause every new profile created to include the
shortcut, and then also create the shortcut in existing profiles as desired.


Thanks



Dec 30 '06 #5
Franky wrote:
Thanks

I'm not where I can try anything out.

Would you please comment on what CSIDL_COMMON_DOCUMENTS is for

Franky
Franky:

At least on XP, CSIDL_COMMON_DOCUMENTS will give

C:\Documents and Settings\All Users\Documents

which is also called "Shared Documents". By default, any user can read
or write there.

David Wilkinson
Dec 30 '06 #6
Thanks


"David Lowndes" wrote:
In a prior post I asked about referencing the folder "My Documents"
and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.

Have you tried CSIDL_COMMON_DOCUMENTS?

Dave
Dec 31 '06 #7
Thanks

"David Wilkinson" wrote:
Franky wrote:
Thanks

I'm not where I can try anything out.

Would you please comment on what CSIDL_COMMON_DOCUMENTS is for

Franky

Franky:

At least on XP, CSIDL_COMMON_DOCUMENTS will give

C:\Documents and Settings\All Users\Documents

which is also called "Shared Documents". By default, any user can read
or write there.

David Wilkinson
Dec 31 '06 #8


"Brian Muth" wrote:
>
" Franky" <fr***********@a-znet.comwrote in message
news:ed*************@TK2MSFTNGP02.phx.gbl...
In a prior post I asked about referencing the folder "My Documents"

and someone was good enough to tell me about:

SHGetFolderPath(NULL, CSIDL_PERSONAL|CSIDL_FLAG_CREATE, NULL, 0,
szMyDocPath);

But now I think I asked the wrong question. What I want is a folder into
which I can put a folder that will show in everyone's MyDocuments.

Why? They are already there under "C:\Documents and Settings\<users>"

I want to my program to add a new folder

>
By the way, you will need local Administrator privileges to look at other
people's documents.

Brian

Dec 31 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Salad | last post by:
I designed a small app and I wanted to do a BrowseFolder (see http://www.mvps.org/access/api/api0002.htm), basically do a file open diaglog and select a directory/folder. The problem is that you...
1
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! How do i get the path to the current users document folder? I can't find any method in the .NET framework?!? Any one got an idea? Regards Martin
3
by: dgk | last post by:
How can I find out what folder is MyDocuments for the current user? I figured that I'd find it somewhere in system.environment but I don't see anything useful there. It doesn't look like an...
2
by: Keith Kowalski | last post by:
I anm opening up a text file reading the lines of the file that refer to a tif image in that file, If the tif image does not exist I need it to send an email stating that the file doesn't exist...
3
by: Li Pang | last post by:
Hi, I want to create a file in My Documents folder. How to get the folder path? Thanks in advance
46
by: Bruce W. Darby | last post by:
This will be my very first VB.Net application and it's pretty simple. But I've got a snag in my syntax somewhere. Was hoping that someone could point me in the right direction. The history: My...
4
by: Franky | last post by:
I know about GetModuleFileName but what I need is a similar call to get the folder "My Documents" Is there such a thing? Thanks
8
by: Lloyd Sheen | last post by:
I have a list of JPG's which are found in a SQL Server database. When the page selects a certain piece of data it will refer to the file system (resident on IIS server with a virtual directory)...
0
by: cleary1981 | last post by:
Hi All, I back up mydocuments on my server but it seems as if my laptop works off the server as opposed to the local profile on my machine. The problem is when i am connected to the server...
0
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
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...
1
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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.