Monday, February 07, 2005

Environment varible size in Windows

How to get around the problem of environment variable size in Windows?

Sometimes we may need to set PATH variable (or anyother variable) but the content may be "large" (max 255 characters in some flavours of Microsoft Windows). In order to over come this we can use subst command.

subst is a command to assign a Virtual drive for the given path. For example

subst m: C:\myproject\classes

The set CLASSPATH=m:;C:\otherproject\classes;C:\vendor1\classes;
C:\vendor2\classes;.... ..... .... ... ........

Thanks to Bagath for this input!

No comments:

Disqus for techtalk