user1278009
user1278009

Reputation: 9

Directory Common to all windows users

I want to know the directory path that will be accessible by all user in windows.

Multiple user can share the file using that directory.

Upvotes: 0

Views: 162

Answers (2)

Anders
Anders

Reputation: 101606

To get the public folder (FOLDERID_Public) you should call SHGetKnownFolderPath.

On < Vista you should probably use CSIDL_COMMON_DOCUMENTS or CSIDL_COMMON_APPDATA...

Upvotes: 1

penartur
penartur

Reputation: 9912

%PUBLIC% environment variable (it resolves to C:\Users\Public on my system).

Upvotes: 1

Related Questions