473,396 Members | 2,011 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,396 software developers and data experts.

SpecialFolder enum is gone???

Hi

Trying to access the users desktop items, I want to use the following
method:

string url =
System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Desktop);

But - the System.Environment.SpecialFolder enumeration is GONE!!!
Is it me or what is happening? It is everywhere in the MSDN dokumentation,
but I really can't find it? Have a reference to System-assembly, so what am
I doing wrong

Thanks!

Nov 16 '05 #1
2 1486
BCM
Using System.IO;

"Ole Hanson" <ol********@ole.ole> wrote in message
news:cd***********@news.cybercity.dk...
Hi

Trying to access the users desktop items, I want to use the following
method:

string url =
System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Desktop);
But - the System.Environment.SpecialFolder enumeration is GONE!!!
Is it me or what is happening? It is everywhere in the MSDN dokumentation,
but I really can't find it? Have a reference to System-assembly, so what am I doing wrong

Thanks!

Nov 16 '05 #2
What do you mean it's gone? As far I can see it's still there.
What kind of error do you get? Runtime ... Compiletime....
What kind of application is this? Winforms ... Console ... ASP.NET .....

Willy.

"Ole Hanson" <ol********@ole.ole> wrote in message
news:cd***********@news.cybercity.dk...
Hi

Trying to access the users desktop items, I want to use the following
method:

string url =
System.Environment.GetFolderPath(System.Environmen t.SpecialFolder.Desktop);

But - the System.Environment.SpecialFolder enumeration is GONE!!!
Is it me or what is happening? It is everywhere in the MSDN dokumentation,
but I really can't find it? Have a reference to System-assembly, so what
am I doing wrong

Thanks!

Nov 16 '05 #3

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

Similar topics

1
by: zZ | last post by:
Hi All, I'm trying to get my Personal History Folder by Environment.GetFolderPath(Environment.SpecialFolder.History), but it returns the folder of the Default User (contains only...
3
by: Mantorok | last post by:
Hi all Have 2 perculiar problems at the moment: 1) SpecialFolder enum is not being picked up in Intelli-sense (but it is compiling ok when I use this enum) 2) FolderBrowser displays an...
20
by: Glenn Venzke | last post by:
I'm writing a class with a method that will accept 1 of 3 items listed in an enum. Is it possible to pass the item name without the enum name in your calling statement? EXAMPLE: public enum...
21
by: Andreas Huber | last post by:
Hi there Spending half an hour searching through the archive I haven't found a rationale for the following behavior. using System; // note the missing Flags attribute enum Color {
6
by: Gabriël | last post by:
Hi Folks, I've tried to do the following: public enum AssetType { Requested, InOrder, Received, InPlace, Gone }; (...) dropAssetType.DataSource = Enum.GetValues(AssetType); (...) For some...
6
by: Jason Larion | last post by:
When working with enums, I've noticed some behaviour that seems completely counter-intuitive to me. I was wondering if someone here could help restore my sanity, or at least help me to understand...
0
by: Ben Finney | last post by:
Howdy all, I've uploaded enum 0.2 to the Cheeseshop. The main change is that enumeration values now export their enumtype, index, and key (the things that define each value) as attributes....
34
by: Steven Nagy | last post by:
So I was needing some extra power from my enums and implemented the typesafe enum pattern. And it got me to thinking... why should I EVER use standard enums? There's now a nice little code...
2
by: Anil Gupte | last post by:
Why does System.Environment.SpecialFolder.Personal return "5"? How do I get the actual directory? Thanx, Anil Gupte www.keeninc.net www.icinema.com
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.