System path environment variable / truncated path

System path environment variable / truncated path

In my system environment variables the "path" is set to %SystemRoot%\system32;%SystemRoot% immediately followed by a series of user defined paths at the end.

The problem is that when I call certain batch files from old Cobol EXEs, the path seems to get truncated (i echoed the path to a text file during the code run). The batch file also is losing sight of the \winnt\system32 directory, eventhough it is the first value within the "path" variable.

There is no path set in the autoexec.nt / autoexec.bat, and even when I tried different permutations using these with the path in the environment variable it didn't make any difference.

Moving the %SystemRoot%\system32;%SystemRoot% to the end of the system variable (i.e. after the user defined path rather than at the beginning) seems to relocate the system directories, but the path is still being truncated.

Can somebody tell me can the system environment variable be extended / is this a known problem / what is happening etc?

Thanks
Mike

System path environment variable / truncated path

out there still, with at least one reply.

Ray at work

%SystemRoot%\system32;%SystemRoot% immediately followed by a series of user
defined paths at the end.
the path seems to get truncated (i echoed the path to a text file during the
code run). The batch file also is losing sight of the \winnt\system32
directory, eventhough it is the first value within the "path" variable.
tried different permutations using these with the path in the environment
variable it didn't make any difference.
variable (i.e. after the user defined path rather than at the beginning)
seems to relocate the system directories, but the path is still being
truncated.
this a known problem / what is happening etc?

System path environment variable / truncated path

. . . and for good measure he posted a third time a little later.

user
the
is

Sigh...

Ray at work

It's

System path environment variable / truncated path

Old DOS programs are limitted to I believe 128 characters
(including semi-colons) in the DOS path statement. SO try
relocating the dos programs to a folder off the root and
updating the path. Work with the path statement and
software installed (reinstalling to folders off the root)
until you get your path statement number of characters
down to less than 128.

Ed

SystemRoot%\system32;%SystemRoot% immediately followed by
a series of user defined paths at the end.
old Cobol EXEs, the path seems to get truncated (i echoed
the path to a text file during the code run). The batch
file also is losing sight of the \winnt\system32
directory, eventhough it is the first value within
the "path" variable.
and even when I tried different permutations using these
with the path in the environment variable it didn't make
any difference.
of the system variable (i.e. after the user defined path
rather than at the beginning) seems to relocate the system
directories, but the path is still being truncated.
be extended / is this a known problem / what is happening
etc?

System path environment variable / truncated path

put the path itmes you need at the begining of the path
statement, anything over 256 characters cannot be seen by

SystemRoot%\system32;%SystemRoot% immediately followed by
a series of user defined paths at the end.
old Cobol EXEs, the path seems to get truncated (i echoed
the path to a text file during the code run). The batch
file also is losing sight of the \winnt\system32
directory, eventhough it is the first value within
the "path" variable.
and even when I tried different permutations using these
with the path in the environment variable it didn't make
any difference.
of the system variable (i.e. after the user defined path
rather than at the beginning) seems to relocate the system
directories, but the path is still being truncated.
be extended / is this a known problem / what is happening
etc?

System path environment variable / truncated path

Hi

A 32-bits program should be able to handle the full path length of 1023
characters.