anupamasjce2005
Level 2

System environment PATH deletes if the character limit is more then 1024

Hi,


we got one issue while installing one of our product. we are having more then 1024 character in Environment PATH variable and we tried to install our product but as soon as installed all variables in that PATH deleted and only the current installed product path is present.

Can anyone help me out??

Thanks in advance
Anu
Labels (1)
0 Kudos
1 Reply
ranga_tumati
Level 4

Hi Anu,

You can substitute the most commonly used path with a drive name, say 'R' using the 'subst' command. And then use that drive to replace all the occurances of that common directory path. This effectively reduces the whole PATH variable size.

Ex: If most of your binaries present under C:\Program Files\User binaries\Application binaries, then you can subst this with

subst R: C:\Program Files\User binaries\Application binaries

And replace all the occrances of 'C:\Program Files\User binaries\Application binaries' with 'R:'.

And this shouldn't be a problem in the latest OS.

Thanks,
Rangarao
0 Kudos