Re: How to find path for windows folder?

From: jk (jk_at_discussions.microsoft.com)
Date: 03/22/05


Date: Tue, 22 Mar 2005 06:51:03 -0800

Then get it from registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion | SystemRoot

"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: Text of KB Article Included - From error to missing system file
    ... This article describes how to recover a Windows XP system that does not start because of corruption in the registry. ... If you use the procedure that is described in this article, you may not be able to log back into the recovery console to restore the original registry hives. ... In part one, you start the Recovery Console, create a temporary folder, back up the existing registry files to a new location, delete the registry files at their existing location, and then copy the registry files from the repair folder to the System32\Config folder. ...
    (microsoft.public.windowsxp.general)
  • Re: System 32
    ... Go to the Control Panel/Folder Options, on the view tab, uncheck the ... line "restore previous folder windows at logon". ... Rick Rogers aka "Nutcase" MS-MVP - Windows ... > Windows Registry Editor Version 5.00 ...
    (microsoft.public.windowsxp.general)
  • Re: IE6 overwrites anything I try to type in to the address bar
    ... Now....you don't mention which version of Windows you are ... Check the Registry to see if this file is there. ... Download the fix - Reset Search: ... >> dedicated folder after appropriate unzipping, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Computer Clean Up
    ... CCleaner, one advantage of this cleaner is, when Issues is clicked & ... Configure the Windows, Applications & Issues panels to suit. ... Right click in an empty space in Unzipped, select Folder & name it ... RegSeeker is a perfect companion for your Windows registry! ...
    (microsoft.public.windowsxp.general)
  • Re: System 32 folder
    ... Control Panel/Folder Options/View tab, ... The folder should not show up now. ... registry damage it will not. ... Windows help - www.rickrogers.org ...
    (microsoft.public.windowsxp.general)