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

How to Setup My Own Directory Index Rules in htaccess to Allow/Block Special Folder Access?

Imagine I have a folder, inside it are a bunch of photos from my latest nude colony camp visit, and the extravagant shots in it and all, that I dont want just everyone to have access to when typing the main folder e.g. www.website.org/photos/ While…
Sam
  • 15,254
  • 25
  • 90
  • 145
0
votes
1 answer

How to get the thumbnail of a folder? C#

Basically, I have a music folder. And inside the music folder, it has album folders. Each album folders has its own thumbnail.png inside. I have the folder browser to pop up and I can select the music folder. When I select the music folder, The…
0
votes
0 answers

Specialfolder resolutions in differing versions of Windows

My project includes a template that is installed in the 32 bit Program Files directory. Accessing this template is relatively simple: string templateLoc = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) …
user7858150
0
votes
2 answers

Non-English special folder names in Vista/Win7

In non-english versions Windows Vista and Windows 7 the usual special folders (such as the "My documents" folder) have dual naming: For instance "My documents" can be accessed (in german systems) via C:\Users\Username\Documents But is displayed (in…
MartinStettner
  • 28,719
  • 15
  • 79
  • 106
0
votes
2 answers

Create shortcut in Favorites with filepath C#

I have the following code below. I can't seem to get it to work for adding a folder to favorites. If I change it to specialfolders.desktop, it creates a shortcut on the desktop. private void buttonAddFav_Click(object sender, EventArgs e) { …
SeanDon
  • 83
  • 1
  • 12
0
votes
1 answer

How to get a Windows virtual folder location from Java?

I'd like to retrieve the location of a Windows virtual folder from Java. JNA provides some support but the documentation don't explain how to directly use it.
michelemarcon
  • 23,277
  • 17
  • 52
  • 68
0
votes
1 answer

What are the default APPDATA directories each version of Windows?

Is there a list of default APPDATA directories each version of Windows? (XP & up) I need to know the default directory each OS will return for the following call: SHGetSpecialFolderLocation( NULL, CSIDL_APPDATA|CSIDL_FLAG_CREATE , &pidl );
John MacIntyre
  • 12,910
  • 13
  • 67
  • 106
0
votes
0 answers

When can Environment.GetFolderPath(Environment.SpecialFolder.Personal) not belong to the %USERPROFILE% folder?

Environment: Windows PC running .NET Framework. Sample code: Console.WriteLine(Environment.GetFolderPath(Environment.SpecialFolder.Personal) Console.Readline() On my PC, this results in c:\Users\mds\Documents. Doing an echo %USERPROFILE% at the…
Matt Smith
  • 626
  • 6
  • 15
0
votes
1 answer

Onedrive special App Folder - creating a new folder

I'm working with the OneDrive SDK and have successfully managed to get a reference to my special App folder. _appFolder = await OneDriveClient.Drive.Special.AppRoot.Request().GetAsync(); From here I want to create a sub folder called say "Deep…
Russty
  • 283
  • 1
  • 3
  • 6
0
votes
1 answer

Installshield : calling icacls to change write permission for special folder

I've created an Installshield 2015 (Installscript) which installs a .NET application in an installation directory. The .NET application relies on a SQL CE 4.0 database. The installation process is run under Administrator or local administrator…
0
votes
1 answer

Accessing Windows' special named folders in PHP fopen streams

http://en.wikipedia.org/wiki/Special_Folders I am having a problem with accessing a special folder in a fopen stream in php. Example $fp = fopen("%USERPROFILE%/Desktop/text.txt", 'wb'); fwrite($fp, $data); fclose($fp); I try this with sysinternals…
Neddy
  • 503
  • 3
  • 15
0
votes
2 answers

how to create a system folder in My Computer

System folder like My Document which appears in My computer are special folders which appear can not be deleted. Now i want to create something like that, a folder which cannot be deleted. I use the following way,and the folder is created…
shan
  • 51
  • 5
0
votes
1 answer

Set permissions for a custom folder in a Visual Studio setup project

I need to store program settings that can be read/write for all accounts. In the setup project, I will create a program specific folder for the settings under the CommonApplicationData special folder…
0
votes
1 answer

App.config My Documents macro

I am trying to include a substitution in a connection string, so that rather than referring to C:\Users\\Documents, I can leave user-specific information out of it and let the application dynamically resolve the path. I saw in an answer to…
Brian Warshaw
  • 22,657
  • 9
  • 53
  • 72
0
votes
1 answer

How can I control the Desktop Special Folder?

I am saving a file to the desktop special folder like so: String testFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "iTextSharpTest.pdf"); File.WriteAllBytes(testFile, bytes); The problem I have with it is that my…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862