Re: How to find path for windows folder?

From: Job Lot (JobLot_at_discussions.microsoft.com)
Date: 03/22/05


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.
> > >
> > >
> > >
>
>
>



Relevant Pages

  • Re: Common Windows XP Shutdown problem
    ... | Navigate on the left side tree to the HKEY_CURRENT_USER folder ... I'm not using the Spanish version of Windows XP. ...
    (microsoft.public.windowsxp.general)
  • Re: recover compacted folders
    ... Because of this tendency of attachments to infect, ... , then wasted space is generated in that file, and the folder must be ... Windows 2000 and Windows XP. ... Windows XP Service Pack 2 Resources for IT Professionals ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: inbox mostly not open
    ... messages to another folder. ... > When I open Outlook Express it's open automatikly the Inbox. ... Turn off email scanning in your antivirus software. ... themselves (if you have the latest security updates from Windows Update) ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: OE & SP2 missing Local Folders
    ... , then wasted space is generated in that file, and the folder must be ... Turn off email scanning in your antivirus software. ... Windows 2000 and Windows XP. ... Windows XP Service Pack 2 Resources for IT Professionals ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Lost Emails Information During "Compacting" of Folders
    ... , then wasted space is generated in that file, and the folder must be ... Options | Maintenance for each Identity you have, and then compact manually ... Turn off email scanning in your antivirus software. ... Windows 2000 and Windows XP. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)

Loading