|
| ||||||||||
| Tags: envvarupdate, envvarupdate corrupts path, software, utilities, windows software |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Why EnvVarUpdate corrupts PATH
${EnvVarUpdate} $1 "PATH" "A" "HKLM" ${PATH_EXTENSION_STRING} In one out of the twenty attempts this command gets corrupts the PATH. I mean that it does not appent the PATH_EXTENSION_STRING but replace it. The fatal result is that almost no software is able to run on this affected machine. Anyone have any clue why EnvVarUpdate corrupts PATH |
|
#2
| ||||
| ||||
| Re: Why EnvVarUpdate corrupts PATH
Well I just want to one thing that it happens occasionally or in every twenty attempts. According me the only possible solution for this is to add debugger statements some thing like message box at each and every step of the ${EnvVarUpdate} macro/Function and then notice where it is failing. I hope this will help you to figure out the problem. |
|
#3
| ||||
| ||||
| Re: Why EnvVarUpdate corrupts PATH
The reason which I found that may or may not be the same reason the corruption of path. One may be the PATH variable length. Usually the server, type (such as the 2003 server), limit is 2048 characters. Not a hot fix in XP or SP2, it is 1023. I am still thinking the right thing to do. Count the words or characters in the existing path, then determine what can be done? Also looking at the EnvVarUpdate code to make the fix. |
|
#4
| ||||
| ||||
| Re: Why EnvVarUpdate corrupts PATH
This is my first time to hear XP path constraints. But then again, most places I need Windows to install the latest service pack always. If it is a problem, maybe you should check the service pack or set, and then try to limit its presence. Another technique may be used to identify the path and use the variables in the path of the folder in the short folder names. |
|
#5
| ||||
| ||||
| Re: Why EnvVarUpdate corrupts PATH
Few weeks ago, I decided not to use EnvVarUpdate tool again and use setx place. This is working fine for some time, but yesterday the same thing has happened: PATH of the old content is replaced by my stuff. Again, it is only occasional. Therefore, we have the same phenomenon, caused by two different tools. Then I issued within a batch script , and had no problems |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Why EnvVarUpdate corrupts PATH" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data partially corrupts using the Acronis 2012 Try&Decide | Mullan | Windows Software | 6 | 12-01-2012 07:16 PM |
| AVG Surf-Shield Corrupts Application Installation, like Google Chrome | Eeshwari3 | Networking & Security | 6 | 03-06-2011 11:08 AM |
| Nokia C6-00 new 16GB Memory Card corrupts data | Rawana | Portable Devices | 4 | 11-02-2011 09:21 AM |
| Viruses corrupts anti-virus software | first-born | Networking & Security | 3 | 25-12-2010 06:56 AM |
| Change Default Windows Installation Path to Your Desired Path | phones | Tips & Tweaks | 0 | 23-03-2009 11:32 PM |