System path environment variable / truncated path

System path environment variable / truncated path

Post by TWlrZSBPJ0 » Sat, 08 Nov 2003 00:31:05


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

Post by Ray at <%s » Sat, 08 Nov 2003 00:58:00

Have you lost your first post about this from a couple of hours ago? It's
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

Post by MV » Sat, 08 Nov 2003 05:22:52

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






user
the
is
 
 
 

System path environment variable / truncated path

Post by Ray at <%s » Sat, 08 Nov 2003 05:26:36

Sigh...

Ray at work





It's
 
 
 

System path environment variable / truncated path

Post by Ed Maddo » Fri, 21 Nov 2003 03:55:18

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

Post by core » Fri, 28 Nov 2003 07:24:40

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

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

Post by MV » Fri, 28 Nov 2003 07:36:15


Hi

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