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
3
votes
1 answer

Getting Special folders to work in Apache Commons VFS

The Apache Commons VFS library appears to be unable to support special Windows folders (Network, recent, computer, libraries, etc). File[] cbFolders = (File[])sun.awt.shell.ShellFolder.get("fileChooserComboBoxFolders"); and then converting them to…
Daniel Ryan
  • 6,976
  • 5
  • 45
  • 62
3
votes
4 answers

How to get Windows\system32\config\systemprofile\AppData\Local\ folder path in C#?

What is the best way to get this folder path programmatically : Windows\system32\config\systemprofile\AppData\Local ?
Andrei Karcheuski
  • 3,116
  • 3
  • 38
  • 39
3
votes
1 answer

In Mono, how do I get the path to the Documents folder on a Mac (Snow Leopard)?

I'm writing a Mono application and would like to find the full path of the Documents folder - e.g. /Users/johnsmith/Documents/. What's the best way to achieve this?
dommer
  • 19,610
  • 14
  • 75
  • 137
3
votes
2 answers

Path.GetTempPath() always returns %USERPROFILE%

I've written a program that calls the System.IO.Path.GetTempPath() function. All the documentation I've read (like this one) says that the function should return the first path found from this list: The path specified by the TMP environment…
Gillfish
  • 717
  • 1
  • 9
  • 29
3
votes
1 answer

Special folders in Android

Can anyone tell what is the C# equivalent of Environment.GetFolderPath (Environment.SpecialFolder.Personal) in Android? I use monodevelop for android development.
Chethan Shetty
  • 532
  • 6
  • 18
3
votes
4 answers

What does the ProgramFilesX86 SpecialFolder do on systems like Windows XP?

Since I can't find anything clearly stating it on the MSDN documentation: what does the ProgramFilesX86 enum value return on 32-bit systems? Development Environment Please note: in my organization I can't just stand up machines whenever I want to…
Mike Perrenoud
  • 66,820
  • 29
  • 157
  • 232
2
votes
2 answers

get Common Documents folder in VBS

To my great chagrin, I must use VBS to write an InstallShield 2010 LE custom action. I have no VBS experience so I'm basically putting together code snippets that I find. I need to get a hold of the Common Documents folder (CSIDL_COMMON_DOCUMENTS).…
japreiss
  • 11,111
  • 2
  • 40
  • 77
2
votes
3 answers

C# difference between Environment.SpecialFolders and Application folders

What is the difference between the magic paths in these namespaces: Environment.SpecialFolder.LocalApplicationData versus Application.LocalUserAppDataPath And Environment.SpecialFolder.ApplicationData versus…
Jake
  • 11,273
  • 21
  • 90
  • 147
2
votes
1 answer

Drag & Drop for SpecialFolders

I have an application that allows users to drag and drop files or entire folders into a special "drop area," at which point all files are processed. The application is being developed using WPF, and this particular XAML view sets "AllowDrop" to…
jeffreystrauss
  • 187
  • 1
  • 2
  • 10
2
votes
1 answer

MFC CFileDialog - Getting special folder path on windows 7

All. I have some problem during writing an mfc application. It is using the sample project, posted on below url, to implement multiple selection on CFileDialog. http://www.codeproject.com/KB/MFC/SelectDialog.aspx It works fine on Windows Xp but has…
jinbruce627
  • 133
  • 8
2
votes
1 answer

Determining the location of Program Files using VBS

What would a safe way of extracting the 'Program Files' directory location using VBS?. I would like to get the directory location from the environment as it will avoid localization issues as well as problems between different OS architectures (32/64…
Carlos
  • 5,405
  • 21
  • 68
  • 114
2
votes
1 answer

where to write a log file?

I'm using nlog to write log files for debugging purposes. Currently the log file location is set to:
spender
  • 117,338
  • 33
  • 229
  • 351
2
votes
0 answers

How do I create output folder for MSVC generated files in Visual Studio Code?

I am following the tutorial here which shows how to use the VS C++ in Visual Studio Code. Everything runs smoothly. The only problem is the auto-generated files (.lnk, .pdb, .exe and the likes) get generated in my src itself. How do I get the task…
justanotherguy
  • 399
  • 5
  • 16
2
votes
0 answers

Why does size of temp internet files folder exceed max folder size?

I am making a web page that detects the size of the "Temporary Internet Files" folder as well as the maximum size of that folder according to the registry. The code works fine, but with a surprising result: the actual size of the folder can exceed…
2
votes
1 answer

How do I structure folders under LocalApplicationData?

I’m looking into the special folders which have enumerations, such as the LocalApplicationData. On my Windows 7 machine I’ve seen what’s there, and first I see several sub-folders that are GUID’s. I’ve no idea what they are, and presume them to be…
Rod
  • 4,107
  • 12
  • 57
  • 81