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?
...
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...
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]\\"
?
...
In C#, show to refer the locations:
Program Files (x86)
Program Files
rather than hard-coding C:\Program Files (x86) and C:\Program Files
...
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...
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!
...
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?
...
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...
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...
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...
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 ...
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...
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...
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...
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...
Hi,
Recently my application could not navigate to My Computer through PIDL. It worked perfectly until new IE. Can someone help?
Thanks,
Gil.
...
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? 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...
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.
...
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 ...