TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Windows Vista All

Notices

Windows Vista forgets my PATH environment variable on reboot

Windows Vista All


Reply
 
Thread Tools Display Modes
Old 20-08-2007, 12:58 AM   #1
Jon Davis
Guest
 
Posts: n/a
Windows Vista forgets my PATH environment variable on reboot

Every time I reboot, the %PATH% environment variable is either not set or is
truncated (not sure yet, I keep fixing it before I check). If I open up the
System control panel, choose Advanced tab, and click the Environment
Variables button, and then just hit OK, the variables will re-apply
themselves, and my shell scripts will function correctly. On the next
reboot, though, it's all messed up again.

Anyone else have this problem and know how to overcome?

Jon


  Reply With Quote
Old 20-08-2007, 01:00 AM   #2
Synapse Syndrome
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot

"Jon Davis" <.PLEASE.jondavis.net> wrote in message
news:%.gbl...
> Every time I reboot, the %PATH% environment variable is either not set or
> is truncated (not sure yet, I keep fixing it before I check). If I open up
> the System control panel, choose Advanced tab, and click the Environment
> Variables button, and then just hit OK, the variables will re-apply
> themselves, and my shell scripts will function correctly. On the next
> reboot, though, it's all messed up again.
>
> Anyone else have this problem and know how to overcome?


I don't know why that is happening, but you could always make the path using
a user login script.

ss.


  Reply With Quote
Old 20-08-2007, 01:00 AM   #3
Jon Davis
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot


"Synapse Syndrome" <> wrote in message
news:.gbl...
> "Jon Davis" <.PLEASE.jondavis.net> wrote in message
> news:%.gbl...
>> Every time I reboot, the %PATH% environment variable is either not set or
>> is truncated (not sure yet, I keep fixing it before I check). If I open
>> up the System control panel, choose Advanced tab, and click the
>> Environment Variables button, and then just hit OK, the variables will
>> re-apply themselves, and my shell scripts will function correctly. On the
>> next reboot, though, it's all messed up again.
>>
>> Anyone else have this problem and know how to overcome?

>
> I don't know why that is happening, but you could always make the path
> using a user login script.
>
> ss.


Yeah, as far as workarounds go I suppose I am content with opening and
closing the control panel. I am just hoping to find the root of the problem
so that I don't have to, and so that I can be able to troubleshoot the
problem on other machines in the future without resorting to automating the
application of a band-aid to cover a wound that won't stop bleeding. Thanks
for the idea.

Jon


  Reply With Quote
Old 20-08-2007, 01:03 AM   #4
Michael Solomon
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot



"Jon Davis" <.PLEASE.jondavis.net> wrote in message
news:#.gbl...
>
> "Synapse Syndrome" <> wrote in message
> news:.gbl...
>> "Jon Davis" <.PLEASE.jondavis.net> wrote in message
>> news:%.gbl...
>>> Every time I reboot, the %PATH% environment variable is either not set
>>> or is truncated (not sure yet, I keep fixing it before I check). If I
>>> open up the System control panel, choose Advanced tab, and click the
>>> Environment Variables button, and then just hit OK, the variables will
>>> re-apply themselves, and my shell scripts will function correctly. On
>>> the next reboot, though, it's all messed up again.
>>>
>>> Anyone else have this problem and know how to overcome?

>>
>> I don't know why that is happening, but you could always make the path
>> using a user login script.
>>
>> ss.

>
> Yeah, as far as workarounds go I suppose I am content with opening and
> closing the control panel. I am just hoping to find the root of the
> problem so that I don't have to, and so that I can be able to troubleshoot
> the problem on other machines in the future without resorting to
> automating the application of a band-aid to cover a wound that won't stop
> bleeding. Thanks for the idea.
>
> Jon
>
>

Are you using any disk or registry cleanup utilities as either of those
might be the source of the issue.

--
Michael Solomon
Backup is a PC user's best friend
DTS-L.Org:

  Reply With Quote
Old 20-08-2007, 01:09 AM   #5
Jon Davis
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot


"Michael Solomon" <user@#notme.com> wrote in message
news:.gbl...
> Are you using any disk or registry cleanup utilities as either of those
> might be the source of the issue.


No, I'm not.

Jon


  Reply With Quote
Old 20-08-2007, 01:09 AM   #6
Michael Solomon
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot



"Jon Davis" <.PLEASE.jondavis.net> wrote in message
news:.gbl...
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:.gbl...
>> Are you using any disk or registry cleanup utilities as either of those
>> might be the source of the issue.

>
> No, I'm not.
>
> Jon
>
>


Could one of your shell scripts be the issue?
--
Michael Solomon
Backup is a PC user's best friend
DTS-L.Org:

  Reply With Quote
Old 20-08-2007, 01:12 AM   #7
Jon Davis
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot


"Michael Solomon" <user@#notme.com> wrote in message
news:%.gbl...
> Could one of your shell scripts be the issue?


Not sure what you mean; I have no login scripts, and it was the shell
scripts that were failing, specifically because a needed EXE file was
missing from the %PATH%.

Jon


  Reply With Quote
Old 20-08-2007, 01:13 AM   #8
Michael Solomon
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot



"Jon Davis" <.PLEASE.jondavis.net> wrote in message
news:.gbl...
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:%.gbl...
>> Could one of your shell scripts be the issue?

>
> Not sure what you mean; I have no login scripts, and it was the shell
> scripts that were failing, specifically because a needed EXE file was
> missing from the %PATH%.
>
> Jon
>

I see, okay, it was just a shot in the dark.

--
Michael Solomon
Backup is a PC user's best friend
DTS-L.Org:

  Reply With Quote
Old 20-08-2007, 01:13 AM   #9
Robert Firth
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot

Could write a very short c++ program and place it in the startup folder to
do that for you. Kinda a dinky work around, but that is what I would do.

int main(){
system("PATH=%path%;c:\program\path");
return 0;
}

Robert Firth


"Jon Davis" <.PLEASE.jondavis.net> wrote in message
news:.gbl...
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:%.gbl...
>> Could one of your shell scripts be the issue?

>
> Not sure what you mean; I have no login scripts, and it was the shell
> scripts that were failing, specifically because a needed EXE file was
> missing from the %PATH%.
>
> Jon
>


  Reply With Quote
Old 14-09-2007, 05:15 PM   #10
Clayton Arends
Guest
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot

I know it has been a while since your initial post on this topic. My
hope is that you are still monitoring this thread. I have the same
problem with my system. Vista keeps forgetting my path or at least
certain parts of the path. I have been having the problem for the
last three days but only today realized that my path was to blame. In
my case Vista will sometimes forget the path when it's woken up from
sleep and not just on reboots.

If you have solved your problem I would love to know the answer. In
case you haven't solved it I have included my configuration to see if
we may have some similarities.

I am a program developer. In my case I have some other system
variables set up and use those system variables in the path. For
instance:

SRC = C:\MyCompany\Source

This would be the base path to my source files. Beneath the base
source directory I have some common DLLs that I use during
development. So, the PATH variable contains in it entries such as
this:

%SRC%\DLLs
%SRC%\Scripts
... etc ...

The odd thing is that if I drop to the Command Prompt and echo %PATH%
all of the entries are there. But attempting to run a script I get
the "is not recognized as an internal or external command" message.

Vista hasn't forgotten my environment variables because I can run a
script file by typing the following:

%SRC%\Scripts\scriptname

The next time Vista forgets my path I will check and see if it has
only forgotten certain entries in the path or if the entire path is
shot.

- Clayton

  Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing The Value Of The %SystemRoot% Variable In Windows XP Temarias Windows XP 1 21-03-2008 07:42 AM
Vista Boot time Slow in windows 2003 environment TuxEdu Windows Server 2003 1 05-09-2007 02:30 AM
tmpdir, or what sets an environment variable jmichaud Windows Server 2003 0 28-08-2007 09:39 AM
tmpdir, or what sets an environment variable jmichaud Windows Server 2003 0 28-08-2007 09:39 AM
XP Pro forgets security settings after logoff or reboot lewiscobley@gmail.com Windows XP 2 16-08-2007 10:49 PM


< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 04:28 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional