Re: How to find path for windows folder?
From: Job Lot (JobLot_at_discussions.microsoft.com)
Date: 03/22/05
- Next message: John Timney \(ASP.NET MVP\): "Re: Newbie:Using ASP.NET thread pool thread to dispatch TCP data, etc."
- Previous message: MW: "Changing icon in dll."
- In reply to: Peter Rilling: "Re: How to find path for windows folder?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Mar 2005 14:39:03 -0800
Hi Peter
got it working as
Path.GetDirectoryName(Environment.SystemDirectory)
Thanks
"Peter Rilling" wrote:
> By "navigate" I simply mean that once you have the path to the system
> folder, you could then remove the right most folder to get the path to the
> Windows folder, either by direct string manipulation of the path, or using
> the Path class. This assumes that the system folder is under the Windows
> folder, which I never seen it otherwise.
>
> "Job Lot" <JobLot@discussions.microsoft.com> wrote in message
> news:E906D550-9837-4A5E-BEAA-D4A30FA29A3C@microsoft.com...
> > Peter Rilling
> >
> > How can i navigate one folder up?
> >
> > "Peter Rilling" wrote:
> >
> > > Could you get the path for the "system" folder, then navigate one folder
> up?
> > >
> > > "Job Lot" <JobLot@discussions.microsoft.com> wrote in message
> > > news:8031F88B-8961-4377-93ED-F2ACD2F1ED01@microsoft.com...
> > > > How can I find path of windows folder using vb.net? It could be winnt
> or
> > > > windows depending upon the os.
> > > >
> > > > System.Environment.SpecialFolder enumeration does not have a constant
> for
> > > > windows folder.
> > >
> > >
> > >
>
>
>
- Next message: John Timney \(ASP.NET MVP\): "Re: Newbie:Using ASP.NET thread pool thread to dispatch TCP data, etc."
- Previous message: MW: "Changing icon in dll."
- In reply to: Peter Rilling: "Re: How to find path for windows folder?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|