473,625 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding System folders

How do you determine what the Application Data folder would be in C#?
I'm looking for the method that under normal circumstances should return
"c:\Documen ts and Settings\<user> \Application Data\"
Nov 15 '05 #1
2 11726
2G
Environment.Get FolderPath(Envi ronment.Special Folder.Applicat ionData);

Grtz

"John Smith" <jb****@blackfo ot.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
How do you determine what the Application Data folder would be in C#?
I'm looking for the method that under normal circumstances should return
"c:\Documen ts and Settings\<user> \Application Data\"

Nov 15 '05 #2
Thanks.
"2G" <2G@pandora.b e> wrote in message
news:Qr******** ***********@pho bos.telenet-ops.be...
Environment.Get FolderPath(Envi ronment.Special Folder.Applicat ionData);

Grtz

"John Smith" <jb****@blackfo ot.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. .
How do you determine what the Application Data folder would be in C#?
I'm looking for the method that under normal circumstances should return
"c:\Documen ts and Settings\<user> \Application Data\"


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6079
by: Karuppasamy | last post by:
Hi I want to populate all the files and folders of System in a Treeview control like Windows Explorer. I try this using File System Objects. But sometimes I am getting an error like 'Access Denied". Why am I getting an error like this? How to populate the TreeView with Folders and files of the System?
8
2046
by: Mr. B | last post by:
I'm writing an app where I'm trying to look for and List all specific file 'types' found. So I point to a specific start top level Folder... and I want to drill down through ALL sub folders to find file types (using File Extenion). All found DWG files are listed in "lbDwgList" Listbox. I can get the top level and the 'immediate' level below the top level... but I can't figure out how to keep going down X levels (ie: All sub-levels). ...
1
1796
by: Mike Turco | last post by:
How do I go about finding the location of the desktop, temp folder, program files folder, my documents, etc. For example, say that I want to programmatically export a table to a file on the desktop. How do I find the folder? Thanks, Mike
0
1060
by: Garrett | last post by:
Hi all, I am looking for a sample of System.DirectoryServices code that will allow me to do three things: 1. Iterate over all shared folders on a drive (no issue here) 2. Find the groups that are assigned to each folder (can't find ANY code samples for this)
0
2057
by: orientphoebus | last post by:
I tried the new Visual Studio 2005 Team System + VSS2005, no Team Foundation Server. Some questions pop into my head: 1. WITHOUT TFS, can VSS2005 integrated with VS2005? What I like is the VS6 kind of integration: when I modify a source file in VisualStudio, VS found out it's readonly and controled by VSS, then pop up a dialog for me to check out from VSS. It seems like even with TFS, the integration between VSS and VS is not the same....
9
2296
by: Laurent Bugnion | last post by:
Hi, I am wondering what is the best way to find out which ASP.NET sessions are still active. Here is the reason: I have a custom control which can upload files. It saves the files in a folder named after the SessionID. At Session_End, I do some cleanup and delete the "session folder". However, if the PC is rebooted before the session times out, the clean up never happens. So what I wanted to do isL: In my CleanUp method, check all...
3
1990
by: TyBreaker | last post by:
Hi, I'm iterating through the folders on my system and am getting an exception with "System Volume Information". Obviously it's a region I'm not supposed to access so I'm trying to filter it out by checking for the folder name before trying to use it: If Folder.Name <> "System Volume Information" Then GetFolderDetails(Folder) End If But for some reason the if statement is not matching and I'm getting a
9
2552
by: Dave Booker | last post by:
When I run a particular application I've been working on for a while, it somehow finds a value for the Application Setting "Test.Properties.Settings.Default.ProjectPath", but I can't see where it is acquiring the value! I have been through all of the project's Properties, and read through every app.config on my entire computer and can't find the value it's getting during runtime. Mysteriously, when I step through the application in...
17
1842
by: NetworkElf | last post by:
Hi all, I'm writing a service that needs to discover the full directory path for a given locally based share at startup. IOW, I need to have the service running on someserver to take \\someserver\someshare and give me c:\somedir\somedir\shareddir. I'm not quite sure where to start reading about how to do this. Could someone give me a push in the right direction, please?
0
8189
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7182
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4089
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4192
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1499
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.