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

Best way to fix: Acces to path 'C:\..\USB-map' is denied because map is already used

I am trying to make to create a .cmd file with this code into it: call .\CopyToTarget.cmd w60 glb "C:\Users\oma\me\trunk-r664\USB-map". I am creating this code ~5 times. But since \trunk-r664\ is already in use it seems like I cannot write:…
0
votes
1 answer

How can i remove the permission on denied folder?

private bool GrantAccess(string fullPath) { DirectoryInfo dInfo = new DirectoryInfo(fullPath); DirectorySecurity dSecurity = dInfo.GetAccessControl(); dSecurity.AddAccessRule(new FileSystemAccessRule(new…
0
votes
1 answer

Powershell, Remote Job and special folder access

I am working on some remoting stuff, and i seem to have an issue with environment variables on the remote machine. The code I am using to start the remote job is Invoke-Command -sessionOption:(New-PSSessionOption -noMachineProfile)…
Gordon
  • 6,257
  • 6
  • 36
  • 89
0
votes
0 answers

How can I add a shortcut to the windows games folder using C# or VB.Net?

The games folder does not feature in Environment.SpecialFolder collection. I want to programmatically add a shortcut to that folder.
VRM
  • 151
  • 2
  • 11
0
votes
0 answers

Get special folder paths for logged on user while application is elevated

I need to retrieve the paths of certain special folders for the currently logged in user. For example, the current user's desktop. This is simple using SHGetFolderLocation or ShGetSpecialFolderPath with CSIDL_DesktopDirectory, except if the user has…
0
votes
2 answers

ASP.NET MVC Routing, "bin" as a route parameter value

We are developing an English-Turkish dictionary website. "Bin" means "Thousand" in Turkish. So when a user asks for http://tureng.com/search/bin we should show her the meaning of "Bin" in English. However, since /bin is a special directory, she got…
Alper
  • 1,393
  • 13
  • 16
0
votes
1 answer

Get special folder localized name in OS X

I am writing a script that copies some files to ~/Library/Application Support/... directory. This script will fail on a non english mac because Library/Application Support may be called in a different name. How can I get a localized special…
taminov
  • 591
  • 7
  • 23
0
votes
2 answers

Getting Icon Of Special Folders Such As My Computer And Libraries

I have been trying to construct a class to simply grab the current icons of special folders such as "My Computer" AKA "Computer", "Libraries", etc. I'm currently trying to use the SHGetFileInfo() API to achieve this. The original SHGetFileInfo…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
0
votes
3 answers

Get Path To "Links" (AKA Favorites) Folder

UPDATE: So I just found out in doing all this leg work that it seems the "Links" folder in your user folder can be named ANYTHING and you can still access it by going to "C:\Users(username)\Links" Ex:…
Arvo Bowen
  • 4,524
  • 6
  • 51
  • 109
0
votes
2 answers

Accessing User's Favorites Folder From Installer Class

How is it possible to access user's special folders from the Installer class (during installation)
pangular
  • 699
  • 7
  • 27
0
votes
0 answers

Upload to database a file + folder with the same name

I'd like to ask something interesting to those who like difficult things in php or javascript+php, I dont mind. I'd like to know a nice way or get some orientation of how to upload a file to a database (that's super easy) but at the same time the…
juanma
  • 85
  • 1
  • 9
0
votes
1 answer

SHGetFolderPath returns path to admin user account when used in an installer

I'm using SHGetFolderPath CSIDL_APPDATA to get path to the application data folder under current user account. It works fine, but if it is called from an installer, Windows change it to administrator's folder! How can I get the current user's data…
Vojtěch Melda Meluzín
  • 1,117
  • 3
  • 11
  • 22
0
votes
1 answer

Adding a folder in special folders C#

I want to save an XML file into this directory... C:\Users\john\AppData\Roaming\game\data.xml I can navigate here... string PATH = Environment.SpecialFolder.ApplicationData; But how do I create the game folder and save data.xml here?
user3733200
  • 49
  • 1
  • 7
0
votes
1 answer

C# SpecialFolders enumeration does not include Libraries Folder

The question title is seemingly straight forward and self-explanatory. The issue is that the SpecialFolders enumeration does not include Libraries Folder and I really need to access it and display its folders in a ListBox. Is there any way to do…
user3530012
  • 720
  • 2
  • 20
  • 37
0
votes
1 answer

Locate the Users' path

I've got a program which looks for a previously-installed dependency. Unfortunately, it can be installed almost anywhere (including Program files or nested 6-7 levels deep in an arbitrary folder on C:/) with a couple of exceptions... It should never…
Basic
  • 26,321
  • 24
  • 115
  • 201