473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Where is Enviroment.SpecialFolders ?????????

Trying to get the path to My Documents and I can't seem to find the
Environment.SpecialFolders enumeration. Environment.GetFolderPath is
there ... is there some other assembly/DLL that I must reference?
Nov 17 '05 #1
2 2286
It's defined inside the Environment class, in the mscorlib.dll, which is
loaded automatically. The following works for me.

public static void Main()
{

Console.WriteLine(Environment.GetFolderPath(Enviro nment.SpecialFolder.Person
al));
}

--
--
Truth,
James Curran
[erstwhile VC++ MVP]

Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com

"Tim Nelson" <timnelsATgmail.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Trying to get the path to My Documents and I can't seem to find the
Environment.SpecialFolders enumeration. Environment.GetFolderPath is
there ... is there some other assembly/DLL that I must reference?

Nov 17 '05 #2
Hi Tim,

Framework 1.0 & 1.1 has System.Environment.SpecialFolders enum.
This enum is a subtype of System.Environment.
Maybe your VS has problems with intellisense but you should be
able to compile code that use it.

AFAIK there are some differences betweed this enum in 1.0 vs 1.1
..NET Framework, so look in your docs.

Cheers!
Marcin
Trying to get the path to My Documents and I can't seem to find the
Environment.SpecialFolders enumeration. Environment.GetFolderPath is
there ... is there some other assembly/DLL that I must reference?

Nov 17 '05 #3

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

Similar topics

2
by: Nikhil Barthwal | last post by:
Hi, I have a Java program that needs to access the value of variable PATH (Set in Unix enviroment by setenv or DOS enviroment by PATH statement). How do I access it in Java? Thanks in...
0
by: Mariano Abdala | last post by:
Hi! My name is Mariaro, I was wondering how to create a fully operational development enviroment for .net web App's?? I would like to know for example, hard you would use, OSs, like Win2003 for...
1
by: Andy Stuart | last post by:
I have been asked to provide a .NET enviroment to run SQL based .NET applications across the web. Am I correct in assuming that all is required is Microsoft Server 2003 and SQL Server 2000 and the...
6
by: Todd | last post by:
Hello, How do I register and non .net dll(with the OS) in a .net enviroment? I have a third party dll I need to register(REGSVR32.EXE). What is the best approach to this in a .Net enviroment. ...
3
by: TWJohnson | last post by:
Can anyone tell me how to run the Access2k wizards from code in the Runtime enviroment? I need to do Address labels..perhaps there is another way to approach to this besides the wizards. Can anyone...
3
by: Informer | last post by:
Does any one know any website that I can find examples of C code in Unix Enviroment? Thanks
2
by: Andrej Litowka | last post by:
Hi All! If anybody know, how I cann set an enviroment variable (with ANSI C) on Windows similar like on Linux. I tried setenv, but the function doesn't work correct on Windows - it sets env....
4
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
2
by: Raul | last post by:
So, here it is: I have a 3'rd party API written in C that is Single Threaded(state is saved between different commands, locks and so on - so i'v heared). The only way i was able to use it is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.