Need to make a folder that will show in everyones MyDocuments

  • Thread starter Thread starter Franky
  • Start date Start date
F

Franky

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
 
Franky said:
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
 
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
 
Franky said:
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

I'm not where I can try anything out.

Would you please comment on what CSIDL_COMMON_DOCUMENTS is for

Franky
 
Franky said:
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
 
Thanks



David Wilkinson said:
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
 
Back
Top