Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - DOS AUTOEXEC.BAT "PATH" Command Doesn't Work

Reply
 
Old 04-21-2007   #1 (permalink)
John Wesley Asquith


 
 

DOS AUTOEXEC.BAT "PATH" Command Doesn't Work

Vista apparently does NOT utilize the AUTOEXEC.BAT file in the root
directory of the hard drive. If one puts a PATH command in it, it
doesn't take effect when booting. In fact, the path set by Vista comes
from somewhere but they give no clue as to where it is set and how to
configure it differently.

Anyone know anything about this and how to configure a different path
than Vista sets???

I use Vista Home Premium edition.

Thanks.



My System SpecsSystem Spec
Old 04-21-2007   #2 (permalink)
Rock


 
 

Re: DOS AUTOEXEC.BAT "PATH" Command Doesn't Work

"John Wesley Asquith" <john_asquith6@hotmail.com> wrote
> Vista apparently does NOT utilize the AUTOEXEC.BAT file in the root
> directory of the hard drive. If one puts a PATH command in it, it
> doesn't take effect when booting. In fact, the path set by Vista comes
> from somewhere but they give no clue as to where it is set and how to
> configure it differently.
>
> Anyone know anything about this and how to configure a different path
> than Vista sets???
>
> I use Vista Home Premium edition.


Use the set command from and elevated command prompt or right click the
Computer icon | Properties | Advanced System Settings in the left pane |
Advanced Tab | Environment Variables | System Variables | Edit.

--
Rock [MS-MVP User/Shell]

My System SpecsSystem Spec
Old 04-21-2007   #3 (permalink)
Rick Rogers


 
 

Re: DOS AUTOEXEC.BAT "PATH" Command Doesn't Work

Didn't work in XP either, as NT systems don't use that file. If it's there,
it's because something you installed placed one there and expects it to be
there. Rock has given you the proper steps to declare the environmental
variable.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org

"John Wesley Asquith" <john_asquith6@hotmail.com> wrote in message
news:naul23holg99mrk8r8nqkpe6i959pv7ilh@4ax.com...
> Vista apparently does NOT utilize the AUTOEXEC.BAT file in the root
> directory of the hard drive. If one puts a PATH command in it, it
> doesn't take effect when booting. In fact, the path set by Vista comes
> from somewhere but they give no clue as to where it is set and how to
> configure it differently.
>
> Anyone know anything about this and how to configure a different path
> than Vista sets???
>
> I use Vista Home Premium edition.
>
> Thanks.
>
>


My System SpecsSystem Spec
Old 04-21-2007   #4 (permalink)
Darrell Gorter[MSFT]


 
 

Re: DOS AUTOEXEC.BAT "PATH" Command Doesn't Work

Hello Rick,
Should still pick it up the environmental variables from autoexec.bat.
It doesn't grab them at boot time but the file should be parsed and the
envirronmental variables added to the system variables.
I just created an autoexec.bat and placed it in root of the drive that
contains bootmgr.
I added a set statement as well as a set path to add a path entry and a new
variable.
I rebooted.
The new variable was now available as the path was appended with the new
folder I added.
Should work the same as it did in Windows XP. We don't load execuables
from the autoexec.bat file but we should load variable settings such as
path entries.
I didn't try the config.sys but we should pci variables from that as well.
No driver loads of course or execuables.
We don't mount or run the files, but they both should be parsed during boot
for variable settings.
Thanks,
Darrell Gorter[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
|>From: "Rick Rogers" <rick@mvps.org>
|>References: <naul23holg99mrk8r8nqkpe6i959pv7ilh@4ax.com>
|>In-Reply-To: <naul23holg99mrk8r8nqkpe6i959pv7ilh@4ax.com>
|>Subject: Re: DOS AUTOEXEC.BAT "PATH" Command Doesn't Work
|>Date: Sat, 21 Apr 2007 07:28:41 -0400
|>Lines: 29
|>MIME-Version: 1.0
|>Content-Type: text/plain;
|> format=flowed;
|> charset="iso-8859-1";
|> reply-type=original
|>Content-Transfer-Encoding: 7bit
|>X-Priority: 3
|>X-MSMail-Priority: Normal
|>X-Newsreader: Microsoft Windows Mail 6.0.6000.16386
|>X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6000.16386
|>Message-ID: <Oe5EhhAhHHA.2332@TK2MSFTNGP04.phx.gbl>
|>Newsgroups: microsoft.public.windows.vista.general
|>NNTP-Posting-Host: cpe-74-71-253-32.twcny.res.rr.com 74.71.253.32
|>Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl
|>Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.windows.vista.general:87572
|>X-Tomcat-NG: microsoft.public.windows.vista.general
|>
|>Didn't work in XP either, as NT systems don't use that file. If it's
there,
|>it's because something you installed placed one there and expects it to
be
|>there. Rock has given you the proper steps to declare the environmental
|>variable.
|>
|>--
|>Best of Luck,
|>
|>Rick Rogers, aka "Nutcase" - Microsoft MVP
|>http://mvp.support.microsoft.com/
|>Windows help - www.rickrogers.org
|>
|>"John Wesley Asquith" <john_asquith6@hotmail.com> wrote in message
|>news:naul23holg99mrk8r8nqkpe6i959pv7ilh@4ax.com...
|>> Vista apparently does NOT utilize the AUTOEXEC.BAT file in the root
|>> directory of the hard drive. If one puts a PATH command in it, it
|>> doesn't take effect when booting. In fact, the path set by Vista comes
|>> from somewhere but they give no clue as to where it is set and how to
|>> configure it differently.
|>>
|>> Anyone know anything about this and how to configure a different path
|>> than Vista sets???
|>>
|>> I use Vista Home Premium edition.
|>>
|>> Thanks.
|>>
|>>
|>
|>

My System SpecsSystem Spec
Old 04-22-2007   #5 (permalink)
Joe Guidera


 
 

Re: DOS AUTOEXEC.BAT "PATH" Command Doesn't Work

Hit the start button RIGHT click on "computer" and choose properties. In
the resulting dialog, hit "advanced system settings" link then press the
environment variables button.

The information you're referring to is stored in the registry (and was under
Windows XP as well).

Cheers,
Joe

"John Wesley Asquith" <john_asquith6@hotmail.com> wrote in message
news:naul23holg99mrk8r8nqkpe6i959pv7ilh@4ax.com...
> Vista apparently does NOT utilize the AUTOEXEC.BAT file in the root
> directory of the hard drive. If one puts a PATH command in it, it
> doesn't take effect when booting. In fact, the path set by Vista comes
> from somewhere but they give no clue as to where it is set and how to
> configure it differently.
>
> Anyone know anything about this and how to configure a different path
> than Vista sets???
>
> I use Vista Home Premium edition.
>
> Thanks.
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Passing "| find" in command executed with EXEC method does not work VB Script
Can I load "idle.com" in Autoexec.bat when I work in Windows 98 on Virtual PC
"Open command prompt here" and "Copy as path" Vista performance & maintenance
Question About "autoexec.nt" and "config.nt" (in Vista) Vista security
Question About "autoexec.nt" and "config.nt" (in Vista) Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46