C#/VB.Net - Enumerate Path -
how can path variable clear in enumeration appdata, temp , winddir? tried this:


but enumeration wont allow me use non-constant expression still have folders clean , structured listed in enumeration, workarrounds problem?
you aren't going able enum, class:
public class myfolder { public static string windows {get {return system.environment.getenvironmentvariable("windir");}} public static string appdata {get {return system.environment.getenvironmentvariable("appdata");}} public static string temp {get {return system.environment.getenvironmentvariable("temp");}} } i made static access enum (ie myfolder.windows).
Comments
Post a Comment