System Environment Variables / Truncated path

G

Guest

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 or autoexec.bat, and eventhough I did try different permutations of using these along with the environment variable, it didn't make any difference.

Moving the %SystemRoot%\system32;%SystemRoot% to the end of the 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 is there any way of extending the space for the environment variable / is this a known problem / what is going on etc?

Thanks
Mike
 
R

Ray at

Mike O'Neill said:
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).

Post the contents of that file? Also post the contents of %path% entered
directly at the command prompt (cmd.exe).

Ray at work
 
G

Guest

thanks - will do on Monday ; the machine is not available to me at the moment and i can't even access remotely ; my own machine is nt so i can't replicate either...

thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top