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
0 answers

How to let Windows recognize a folder as Recycle Bin?

I have a FAT32 MicroSD card, where my device creates a folder named '$Recycle.Bin' in the root, with hidden+system attributes set, but Windows doesn't recognize it as a real recycle bin (with the correct icon, etc.). How can I trick Windows into…
Maestro
  • 9,046
  • 15
  • 83
  • 116
0
votes
1 answer

How do virtual & special folders work?

Windows has several "virtual folders" and "special folders" (Wikipedia's names for them) that change the way the file system works. For example, the Desktop folder acts like the root of the file system hierarchy in some circumstances, even though…
trysis
  • 8,086
  • 17
  • 51
  • 80
0
votes
2 answers

How does one designate the root of a handheld device?

I need to recursively search a handheld device for any files anywhere on the device that follow a certain pattern (such as "Platypus.XML"). To pass the root of the device to my directory traversal method, do I pass "\" or something else? In Windows…
0
votes
1 answer

Create user folders like userfolder/ticket and manage on a server in c#

I have one problem in a web server regarding the creation user folders and management. I have one page that users use to add the contents. During this add the user push one select button and add the content in one her folder like…
Romi
  • 1
0
votes
1 answer

How to get folder ids

I am searching through the folders inside the DCIM folder on the android device how do I get the folder id's that they are in ? for example, if I have Camera folder, Picasa folder and other folders I need this folder's ID how do I get it ?
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
0
votes
0 answers

couldn't create files in my documents if my documents folder is redirect to another location in setup project

I'm creating a setup project, in the installation, I should create a file in My Documents folder, my code in Commit method looks like this: base.Commit(savedState); string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)…
James
  • 2,570
  • 7
  • 34
  • 57
0
votes
1 answer

KnownFolders with different frameworks

I'm searching for a way to retrieve KnownFolders with framework 2.0, 3.5 or 4.0 (mainly 2.0) Is there a C# method for the Windows API function SHGetKnownFolderPath? If found this, but it is only for Windows 8 store apps.
joe
  • 8,344
  • 9
  • 54
  • 80
0
votes
0 answers

CompanyName spaces replaced with underscore in AppData Folder

all. I'm getting a weird issue with AppData folder. I'm trying to access the user.config in AppData\Local\[Company Name]\... folder. [Company Name] is set in AssemblyInfo.cs by AssemblyCompany attribute and it contains spaces. Lets say its "My…
DanielS
  • 744
  • 6
  • 13
0
votes
2 answers

DOS Batch file - Copy file based on filename into folder

I would like to use a batch file to put them into default folder, but the account name is in the middle of the folder. Have any script I can use in dos command prompt? 888123AA.pdf 888123BB.pdf 888123CC.pdf 777456AA.pdf 777456BB.pdf …
user2389248
  • 29
  • 1
  • 8
0
votes
1 answer

How can I add %LOCALAPPDATA% to a connection string setting?

I have an n-tier application that uses a data access layer. In the data access layer project settings, there is a connection string. The string contains the text "Data Source=|%LOCALAPPDATA%|\Some Folder\File.ext" but when the application is run…
Shane LeBlanc
  • 2,633
  • 13
  • 42
  • 74
0
votes
1 answer

empty string from special folder (loadUserProfile is "true")

I need to use some folder for temp files. I tried to use string directoryPath = HttpContext.Current.Server.MapPath("~/tempFiles"); but when I publish it to IIS I had permission issues. So I tried to use : string directoryPath =…
TamarG
  • 3,522
  • 12
  • 44
  • 74
0
votes
1 answer

Best place to store data / settings for a .net Service and a GUI Frontend

I have a program that runs as a service and also runs simultaneously as the service front end. what is the best strategy for storing files and data for both these instances. the program runs in 3 modes :- Completely as a service Service and front…
TheGeneral
  • 79,002
  • 9
  • 103
  • 141
0
votes
1 answer

How to set the OpenFileDialog to open at 'My Computer'

I wanted my OpenFileDialog to start at My Computer to show all available drives. You would assume you could set the InitialDirectory property to GetFolderPath(Environment.SpecialFolder.MyComputer), but this function returns "", which doesn't have…
Bill
  • 3,806
  • 5
  • 33
  • 45
0
votes
1 answer

How to get the My Music as the default selected path in a Folder Selection dialog

When opening a folder selection dialog in C++, I'm trying to get the default selected path to be %USERPROFILE%/My Music, but I can't figure that out. this->diaActionFolder->SelectedPath = System::Environment::SpecialFolder::MyMusic; The above code…
David Gard
  • 11,225
  • 36
  • 115
  • 227
0
votes
3 answers

Find all files in a shared special folder (Virtual Folders)

Im looking for a way to find all files in an shared special folder (Virtual Folder). The Desktop for example is an shared folder, there is a public Desktop for all users and a private Desktop. By navigating with the file explorer to Desktop you will…
Eun
  • 4,146
  • 5
  • 30
  • 51
1 2 3
13
14