stefanr
asked on
Is there a limit to the PATH variable to about 1000 characters?
Env. Windows NT 4.0 Workstation SP6a
Hello,
I have a temporary need of setting a lot of different search path in the PATH environment variable, but I seem to have hit a limit of about 1000 characters... I have not found any reference in Microsoft Support about that there should be such a limit (I know that MSDOS have a limit of 128 characters for the PATH environment variable), so what I wonder is:
Is there such a limit built in to Windows NT?
and
Is there a way of changing that limit, if any?
Regards,
/Stefan
Hello,
I have a temporary need of setting a lot of different search path in the PATH environment variable, but I seem to have hit a limit of about 1000 characters... I have not found any reference in Microsoft Support about that there should be such a limit (I know that MSDOS have a limit of 128 characters for the PATH environment variable), so what I wonder is:
Is there such a limit built in to Windows NT?
and
Is there a way of changing that limit, if any?
Regards,
/Stefan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hmmmm... yes, so far I have tried SysExpert's solution, but I am still having some problems with NT services, which cannot create such drive mappings on system level (as far as I know, anyway)... the search path must be constructed among the system variables, since the DLL's are used both by NT services and the currently logged on user...
I will try mikelima's suggestion, and see if that works also for NT services... if it does, then it would also be a better solution, since there would not be any confusion among the programs (including the debugger) about where the DLL's are located...
But still I would like to know if there is any official report about that there is a limit of about 1K in the search path, since I have not found anything myself in the Mocrosoft Knowledge Base - only a 128 character limit in the old MSDOS...
I will try mikelima's suggestion, and see if that works also for NT services... if it does, then it would also be a better solution, since there would not be any confusion among the programs (including the debugger) about where the DLL's are located...
But still I would like to know if there is any official report about that there is a limit of about 1K in the search path, since I have not found anything myself in the Mocrosoft Knowledge Base - only a 128 character limit in the old MSDOS...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ie map x: to c:\cc\ass\sss\asdasda
then use x:\ in your path search.
I hope this helps !