special-folders

CommonAppData in vbscript

A customer's application "AppName" has its configuration files stored in CommonAppData. Under Windows XP that is C:\Documents and Settings\All Users\Application Data\AppName Under Windows Vista that is C:\ProgramData\AppName How do I get the correct foldername with VBScript? ...

DirectoryNotFoundException when calling Directory.GetDirectories on Environment.SpecialFolder.Favorites due to Domain Folder Redirection

I have some C# code that tries to get the Favorites for the currently logged in user. The code is part of a Taskbar Toolbar that gets loaded into the Windows Explorer process. I have a user who is using Windows Vista with UAC enabled on a domain that either has Roaming Profiles or Folder Redirection setup and enabled. When calling Dir...

How can I get the current user directory?

Using this: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) I get this output: "C:\\Documents and Settings\\[USER]\\Application Data" How can I get "C:\\Documents and Settings\\[USER]\\" ? ...

Refer Program Files in 64 bit machine

In C#, show to refer the locations: Program Files (x86) Program Files rather than hard-coding C:\Program Files (x86) and C:\Program Files ...

Find windows folder programatically in c#

I am writing a program to kill and restart explorer but I don't want to hard code the location becuase some people install windows in diffrent places (for example i found someone who had it installed in the d:\ drive where the C:\ drive did exist but had nothing installed on it) I tried looking under Environment.SpecialFolder. but I don...

As a developer, how should I use the special folders in Vista (and Windows 7)?

Where should I save data related to my application? Where should I save configuration files? Where should I save temporary files? Should I do it in "Documents" ? "AppData" ? etc.... What is the best practice for saving data to the disk (I guess, best practice for special folders?!) Thanks! ...

Referring to MS Windows special folders in Emacs

Is there a simple way to find a file on my desktop in Emacs? Instead of going the "C:\Documents and Settings\MyName\Desktop\" way... Maybe there is a way to define aliases in my .emacs which I can use during find-file? ...

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 not come up in the context menu when navigating library folders (such as Documents/My Do...

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

Hi, 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 UserFolder/TheContent. I need to extend to use personalized folders using some item added by the user in...

Test for "My Documents" folder redirection

Is it possible to test for folder redirection in .net? I don't mean reparse points/junctions, I mean when a folder (usually My Documents) is redirected to a server. In such cases, if you are traversing the folder system of a PC you'll encounter an IO error if you reach the local version of the folder. So it would be useful to be able t...

How do get the path of Program Files regardless of the architecture of the target machine.

I'm programming in C#.NET. I want to be able to return the Program Files directory from the target machine no matter what the architecture of the target machine is. To clarify, I want it to return C(or whatever drive the OS is on):/Program Files no matter what bittness their version of windows is. I could just hardcode in the directory ...

Programmatically access All Users Start Menu

Does anyone know how to programmatically access the "All Users" Startup Menu? In XP, located here: C:\Documents and Settings\All Users\Start Menu\Programs\Startup And in Windows 7, located here: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup Specifically, I've got a Setup and Deployment project, and I'd like to put a...

What determines the return value of Path.GetTempPath() ?

Currently, I use Path.GetTempPath() to figure out where to write my log files, but recently I came across a user's machine where the path returned was not what I expected. Usually, the returned path is C:\Documents and Settings\[userid]\Local Settings\Temp but in this case, it was C:\Temp This would not normally be a problem, but for s...

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 workaround, but it's unreliable. Ideally, Environment.GetFolderPath(Environment.SpecialFolder.VM...

Downloading files and save it to a hidden folder on iPhone

Hi, can some give me a good resource for the iphone filesystem? Basically I want to know: Where can I save my downloaded files into which folders? And which are not allowed? Which of these folders are hidden? (which won't be backup extracted) These files should stay on the device. Want I'm trying to do is this: The user can download...

Navigate C# WebBrowser to Special folders

Hi, Recently my application could not navigate to My Computer through PIDL. It worked perfectly until new IE. Can someone help? Thanks, Gil. ...

Where is a safe place to store log files that is compatable with XP, Vista, and Windows 7?

I have a winforms app that needs to write out logs. The app also needs to run without UAC warnings and using a non-admin account. Where can I write my logs without running afoul of the default security settings? In addition, this has to work on Windows XP, Vista, and 7. Extra points if all users can write to the same set of log files. ...

Is there a definitive guide for special folders in windows?

Is there a definitive guide for special folders in windows? An internet search yielded just a few crumbs of information, e.g. Wikipedia:Special Folders Windows 7 Client Software Logo Program What I'm looking for is an explanation of each folder, its intended purpose, usage scenarios and motivation for its existence (e.g. what does L...

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

Hi everybody, 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 a 404. Any ideas to solve it? Thanks. ...

CommonAppData in vb6

Basically the same as this question, but for VB6. A customer's application "AppName" has its configuration files stored in CommonAppData. Under Windows XP that is C:\Documents and Settings\All Users\Application Data\AppName Under Windows Vista that is C:\ProgramData\AppName How do I get the correct foldername ...