Questions tagged [special-folders]

"Special folders" refers to directories in the Windows operating system that provide extended functionality in the user interface. Prominent examples are the "Desktop", "Start Menu", the "My Documents" and the "Fonts" folders.

The physical location and the number of special folders depend on the Windows version and system language.

Windows transparently manages the correlation between physical location on the disk and representation in the shell namespace, so these folders are best retrieved through the Windows API, as opposed to using fixed paths.

200 questions
7
votes
3 answers

CommonAppData in vb6

Basically the same as this question, but for VB6. A customer's application "AppName" has its configuration files stored in CommonAppData. Under Windows XP that is C:\Documents and Settings\All Users\Application Data\AppName Under Windows…
DavRob60
  • 3,517
  • 7
  • 34
  • 56
7
votes
1 answer

CommonAppData in vbscript

A customer's application "AppName" has its configuration files stored in CommonAppData. Under Windows XP that is C:\Documents and Settings\All Users\Application Data\AppName Under Windows Vista that is C:\ProgramData\AppName How do I get the…
Mephisztoe
  • 3,276
  • 7
  • 34
  • 48
7
votes
1 answer

Access the 'Application Data' folder when using Folder Redirection

We use Folder Redirection at my work, and I'm trying to simplify a script that runs when users log on to a Terminal Server. Is there a way, through SpecialFolders, to access the Application Data folder? I ask because if we have to move the location…
David Gard
  • 11,225
  • 36
  • 115
  • 227
6
votes
2 answers

Function for getting localized path?

Windows 7 (and probably Windows Vista) display localized folder names using the LocalizedResourceName entry in the desktop.ini file. For my Documents folder, this looks…
MartinStettner
  • 28,719
  • 15
  • 79
  • 106
6
votes
2 answers

Windows: How to canonicalize a file to the special folder?

i want to to persist some filenames for the user (e.g. recent files). Let's use six example files: c:\Documents & Settings\Ian\My Documents\Budget.xls c:\Documents & Settings\Ian\My Documents\My Pictures\Daughter's Winning Goal.jpg c:\Documents &…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
6
votes
2 answers

Is there a definitive guide for special folders in windows?

Is there a definitive guide for special folders in windows? An internet search yielded just a few crumbs of information, e.g. Wikipedia:Special Folders Windows 7 Client Software Logo Program What I'm looking for is an explanation of each folder,…
redcalx
  • 8,177
  • 4
  • 56
  • 105
6
votes
1 answer

Refer to 'Program Files' on a 64-bit machine

In C#, how do I refer the following locations rather than hard-coding them? Program Files (x86) Program Files
Nemo
  • 4,601
  • 11
  • 43
  • 46
5
votes
3 answers

SaveFileDialog exception in my WPF app

One of my customers is experiencing a crash in my WPF application when saving a file. My save file code is: var saveFileDialog = new SaveFileDialog { InitialDirectory =…
Ross
  • 4,460
  • 2
  • 32
  • 59
5
votes
3 answers

How to get the total number of items on the (logical) desktop (C#)

Let me elaborate. By "items" I mean all the items you see one the desktop (Windows) which includes "My Computer", "Recycle Bin", all the shortcuts etc. If I select all the items on the desktop I get the count in the properties displayed. It is this…
nawfal
  • 70,104
  • 56
  • 326
  • 368
5
votes
1 answer

Does Windows 7 restrict folder access as Vista does?

I noticed that in my application, most compatibility problems were caused by 'access denied' for some folders, such as: Application Data [C:\ProgramData] Desktop [C:\Users\Public\Desktop] Documents [C:\Users\Public\Documents] Favorites…
monsabre
  • 2,099
  • 3
  • 29
  • 48
5
votes
1 answer

How to use Application Data in an (App.config) connectionString

I've got an SQL Server CE database in a project that I wan't to store somewhere in the %AppData% directory. However I can't find a way to make a reference to the Application Data path in the connection string (in the App.Config)
Sander
  • 616
  • 1
  • 6
  • 17
5
votes
2 answers

How to create shortcut to Computer on the user's desktop

I am working on a VBScript that is to show the "Computer" icon on the desktop. I've been able to do one for IE using the following code, however as Computer is a "Special Folder" that does not seem to have an actual location I can't use the same…
user3216887
  • 357
  • 1
  • 3
  • 13
5
votes
2 answers

Writing to internal SD card on Android

Is there any way of accessing the internal SD card on Android devices that have internal flash, internal SD and external SD cards?
Tristan Warner-Smith
  • 9,631
  • 6
  • 46
  • 75
5
votes
2 answers

Where is a safe place to store log files that is compatible with XP, Vista, and Windows 7?

I have a winforms app that needs to write out logs. The app also needs to run without UAC warnings and using a non-admin account. Where can I write my logs without running afoul of the default security settings? In addition, this has to work on…
Ryan Michela
  • 8,284
  • 5
  • 33
  • 47
5
votes
2 answers

How to get 64bit system folder in a 32bit application?

In a 32bit application, I have to copy a file to the 64bit system folder (C:\Windows\System32\ instead of C:\Windows\SysWOW64\) For this, I tried to get the folder using the WinAPI function SHGetKnownFolderPath with parameter…
joe
  • 8,344
  • 9
  • 54
  • 80
1 2
3
13 14