Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 08-08-2007, 09:40 AM
Jon Davis
Newsgroup Contributor
 
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 08-08-2007, 09:40 AM
  #2 (permalink)  
Old 08-08-2007, 10:10 AM
Synapse Syndrome
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot

"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:%23DHdVnd2HHA.1124@TK2MSFTNGP06.phx.gbl...[color=blue]
> 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?[/color]

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

ss.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 08-08-2007, 10:30 AM
Jon Davis
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot


"Synapse Syndrome" <synapse@NOSPAMgomez404.elitemail.org> wrote in message
news:uH1sV3d2HHA.1188@TK2MSFTNGP04.phx.gbl...[color=blue]
> "Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
> news:%23DHdVnd2HHA.1124@TK2MSFTNGP06.phx.gbl...[color=green]
>> 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?[/color]
>
> I don't know why that is happening, but you could always make the path
> using a user login script.
>
> ss.[/color]

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 08-08-2007, 12:30 PM
Michael Solomon
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot



"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:#BoJeEe2HHA.3640@TK2MSFTNGP06.phx.gbl...[color=blue]
>
> "Synapse Syndrome" <synapse@NOSPAMgomez404.elitemail.org> wrote in message
> news:uH1sV3d2HHA.1188@TK2MSFTNGP04.phx.gbl...[color=green]
>> "Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
>> news:%23DHdVnd2HHA.1124@TK2MSFTNGP06.phx.gbl...[color=darkred]
>>> 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?[/color]
>>
>> I don't know why that is happening, but you could always make the path
>> using a user login script.
>>
>> ss.[/color]
>
> 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
>
>[/color]
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: [url]http://www.dts-l.org/[/url]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 08-08-2007, 03:40 PM
Jon Davis
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot


"Michael Solomon" <user@#notme.com> wrote in message
news:OEDuAFf2HHA.1100@TK2MSFTNGP06.phx.gbl...[color=blue]
> Are you using any disk or registry cleanup utilities as either of those
> might be the source of the issue.[/color]

No, I'm not.

Jon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 08-08-2007, 03:50 PM
Michael Solomon
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot



"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:OVGCavg2HHA.5740@TK2MSFTNGP04.phx.gbl...[color=blue]
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:OEDuAFf2HHA.1100@TK2MSFTNGP06.phx.gbl...[color=green]
>> Are you using any disk or registry cleanup utilities as either of those
>> might be the source of the issue.[/color]
>
> No, I'm not.
>
> Jon
>
>[/color]

Could one of your shell scripts be the issue?
--
Michael Solomon
Backup is a PC user's best friend
DTS-L.Org: [url]http://www.dts-l.org/[/url]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 08-08-2007, 04:50 PM
Jon Davis
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot


"Michael Solomon" <user@#notme.com> wrote in message
news:%230Vj11g2HHA.5116@TK2MSFTNGP04.phx.gbl...[color=blue]
> Could one of your shell scripts be the issue?[/color]

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 08-08-2007, 05:40 PM
Michael Solomon
Newsgroup Contributor
 
Posts: n/a
Re: Windows Vista forgets my PATH environment variable on reboot



"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:ux4n3Yh2HHA.5796@TK2MSFTNGP05.phx.gbl...[color=blue]
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:%230Vj11g2HHA.5116@TK2MSFTNGP04.phx.gbl...[color=green]
>> Could one of your shell scripts be the issue?[/color]
>
> 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
>[/color]
I see, okay, it was just a shot in the dark.

--
Michael Solomon
Backup is a PC user's best friend
DTS-L.Org: [url]http://www.dts-l.org/[/url]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 08-08-2007, 05:50 PM
Robert Firth
Newsgroup Contributor
 
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
[url]http://www.winvistainfo.org[/url]

"Jon Davis" <jon@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:ux4n3Yh2HHA.5796@TK2MSFTNGP05.phx.gbl...[color=blue]
>
> "Michael Solomon" <user@#notme.com> wrote in message
> news:%230Vj11g2HHA.5116@TK2MSFTNGP04.phx.gbl...[color=green]
>> Could one of your shell scripts be the issue?[/color]
>
> 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
>[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 09-18-2007, 11:35 PM
Clayton Arends
Newsgroup Contributor
 
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 09-18-2007, 11:35 PM
Clayton Arends
Newsgroup Contributor
 
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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH Environment Variable Trouble Curtis Windows XP 5 02-05-2007 12:15 PM
Setting an environment variable via GPO or other method? (Depends on OS type, 64 or 32bit) ? markm75 Windows XP 5 02-01-2007 12:32 PM
Environment Variable Information Itech_Smart Windows XP 12 01-04-2007 06:39 AM
How do I include one environment variable inside another in the registry? jtpryan Windows XP 1 01-04-2007 03:56 AM
Env. PATH variable not working sometimes... KrzysztofM Windows Vista 0 01-01-2007 09:48 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 07:43 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0