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

Is there any way to access clients(users) special folder from web application hosted in web server

I'm developing a web application using MVC which is hosted in web server. Whenever a user accesses the application, it has to fetch the local app data folder from the clients machine. Is there any possible way to achieve the above mentioned…
Veda Sri
  • 31
  • 5
2
votes
2 answers

why the specialfolder.personal return c:/user/xxx/Documents

I expect the specialfolder.personal returns c:/users/xxx, however in my Windows 7 system, it returns c:/users/xxx/Documents. Why? How to get the folder of personal root directory?
user496949
  • 83,087
  • 147
  • 309
  • 426
2
votes
2 answers

How to add relative path to DB file for C#

I have a C# project and I have added a Access file (.mdb) by New Data Source option. So a copy of it is always in my project folder. Now my connection string uses that path (C:\Users\PC\Visual Studio\Projects....). If I'm moving the project to…
Sam Pro
  • 73
  • 6
2
votes
1 answer

Check if a given path is a special folder path?

On Windows, one can get any special folder path using SHGetKnownFolderPath or SHGetSpecialFolder (If I remember correctly this last one). However, I want the reverse, I have a path and want to know which special folder it belongs to, if any. I…
Davita
  • 8,928
  • 14
  • 67
  • 119
2
votes
1 answer

Windows Special and Known Folders from python (Start Menu, Downloads, ...)

What is the best method to determine the path of Windows special-folders and known-folders in python? I've uncovered a couple of popular methods for SpecialFolders, a.k.a CSIDL, but nothing straightforward yet for KNOWNFOLDERID. Backwards…
matt wilkie
  • 17,268
  • 24
  • 80
  • 115
2
votes
1 answer

VBA Excel: list files in backup (prev. version) folder

Below is a very simple code for listing files in a specified folder. It works as expected. However, when I provide one of the backup folders of this folder, it throws invalid path (backup folder path copied from win explorer window). E.g.: Set…
Istvan
  • 73
  • 12
2
votes
2 answers

How do I get the Virtual Machines folder on Win7?

I'm writing a tool called XP-More, which should help manage Windows 7 Virtual Machines. The first thing the tool has to do when launched is find the VM folder. However, turns out that folder is not listed as a Windows Special Folder. I use a…
xpmore
  • 21
  • 2
2
votes
1 answer

Environment.SpecialFolder.MyDocuments works but SpecialFolder.MyComputer doesn't work?

I am using VS2013 Express for Desktop and using Windows Forms. I am following this MSDN Walkthrough "Creating an Explorer Style Interface with the ListView and TreeView Controls Using the Designer". So I am trying to get the treeview to start from…
Doochz
  • 1,039
  • 2
  • 14
  • 25
2
votes
3 answers

Displaying complete context menu in windows 7 library folders

When browsing non-special/standard folders in explorer (windows 7), I have various custom right-click context menu options such as: "Open command window here" (shift+ rightclick) TortoiseHG WinMerge ...etc... The problem is that these options do…
user252006
2
votes
1 answer

Error 91 using CreateObject on XP machines

I have an old VB6 app that I've distributed to several users running XP, Windows 7 and Windows 8. The following code is throwing an Error 91 ""Object variable or With block variable not set". Const ssfPERSONAL = 46 'set directory to the common…
John Marzion
  • 113
  • 2
  • 6
2
votes
2 answers

How to set config output to special folder (LocalApplicationData)?

Is there a way to set my app.config for my WCF service so that it outputs to the LocalApplicationData folder without having to hardcode anything? %LOCALAPPDATA% does not work in XP, and I need to support XP I have found that shell:Local AppData…
Justin Pihony
  • 66,056
  • 18
  • 147
  • 180
2
votes
2 answers

Access "Start up" folder from CMD?

How can I get the path of the start up folder from a batch file? The only way I found was to look in the registry but I don't think thats possible with CMD.
Oztaco
  • 3,399
  • 11
  • 45
  • 84
2
votes
1 answer

Is there a better way to find a user's Start Menu?

For me, my Start Menu is located at %appdata%\Microsoft\Windows\Start Menu Is there a system folder reference to use in a batch file that doesn't rely on it being in this place? I would like the script to work for XP and up, but I am running Windows…
dlras2
  • 8,416
  • 7
  • 51
  • 90
1
vote
1 answer

Prefix Folder structure for Zend

If i have a url such as this http://example.com/controller/action every thing works find. as expected. However i need to deploy this and in deployment things change a bit to htttp://deploy.com/stuff/pile/controller/action is there any way i can…
Angel.King.47
  • 7,922
  • 14
  • 60
  • 85
1
vote
0 answers

Install fails on Windows 11 with OneDrive

I've had at least two users complain about our myapp.msi quickly failing, rolling back and then exiting without any messages. This just got reported again by an internal tester running Windows 11 (I don't recall whether the first user was on Windows…
Scott Smith
  • 3,900
  • 2
  • 31
  • 63