Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Windows Vista forgets my PATH environment variable on reboot

Reply
Thread Tools Display Modes

Windows Vista forgets my PATH environment variable on reboot

 
 
Jon Davis
Guest
Posts: n/a

 
      08-08-2007
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
 
 
 
 
Synapse Syndrome
Guest
Posts: n/a

 
      08-08-2007
"Jon Davis" <> wrote in message
news:%...
> 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
 
Jon Davis
Guest
Posts: n/a

 
      08-08-2007

"Synapse Syndrome" <> wrote in message
news:...
> "Jon Davis" <> wrote in message
> news:%...
>> 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
 
Michael Solomon
Guest
Posts: n/a

 
      08-08-2007


"Jon Davis" <> wrote in message
news:#...
>
> "Synapse Syndrome" <> wrote in message
> news:...
>> "Jon Davis" <> wrote in message
>> news:%...
>>> 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: http://www.dts-l.org/

 
Reply With Quote
 
Jon Davis
Guest
Posts: n/a

 
      08-08-2007

"Michael Solomon" <user@#notme.com> wrote in message
news:...
> 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
 
Michael Solomon
Guest
Posts: n/a

 
      08-08-2007


"Jon Davis" <> wrote in message
news:...
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:...
>> 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: http://www.dts-l.org/

 
Reply With Quote
 
Jon Davis
Guest
Posts: n/a

 
      08-08-2007

"Michael Solomon" <user@#notme.com> wrote in message
news:%...
> 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
 
Michael Solomon
Guest
Posts: n/a

 
      08-09-2007


"Jon Davis" <> wrote in message
news:...
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:%...
>> 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: http://www.dts-l.org/

 
Reply With Quote
 
Robert Firth
Guest
Posts: n/a

 
      08-09-2007
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
http://www.winvistainfo.org

"Jon Davis" <> wrote in message
news:...
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:%...
>> 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
 
Clayton Arends
Guest
Posts: n/a

 
      09-13-2007
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vista home premium forgets network password on reboot Luca Windows Vista General Discussion 6 01-12-2008 05:52 PM
Path Environment Variable - Vista 64-bit FlyingHorse Windows Vista General Discussion 0 11-19-2007 10:37 PM
Windows logos and NI variable engine andrew Windows Vista General Discussion 0 05-15-2007 10:34 PM
Windows Vista Premium forgets settings angry.boricua@gmail.com Windows Vista General Discussion 1 05-08-2007 06:12 PM
Env. PATH variable not working sometimes... KrzysztofM Windows Vista General Discussion 0 10-16-2006 07:40 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59