Link to home
Start Free TrialLog in
Avatar of tulin
tulin

asked on

SET PATH problem

Hi for everyone,

I run a simple script in a BAT file.
On a command

SET PATH=<MY PATH>;%PATH%

I get an error 'Out of environment space'. Does anybody know what tuning I need to do to fix the problem?

Thanx for any help/advice.
Avatar of bekaye
bekaye

you need to use the shell command in your config.sys file if you wish to increase the environment space.  the default is 256 characters in the environment space, and every character you see when you use the set command from the prompt is a character in the environment.  to increase the environment space to 1024 characters, place the following line near the bottom of the config.sys file:

shell = c:\command.com /p /e:1024

if the line is already present, change to /e:2048.

warning!  before using, make sure that the command.com file is in the c: root directory.  if it is not, modify the shell to show where the location is.

examples:
shell = c:\windows\command.com /p  /e:1024
shell = c:\windows\command\command.com /p /e:1024

good luck!
ASKER CERTIFIED SOLUTION
Avatar of GleasonGuy
GleasonGuy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is Dos memory problem. Just have to set your configuration in Config.sys then sure can sove your problem.
cedric80, Welcome To Experts Exchange!

It is customary to not take a previousley posted comment as an Answer.
bekaye gave this as his comment earlier and instructed EXCATLY how to fix it in the config.sys file. I gave a solution for fixing it directly from the Windows GUI.

Also, It is customary to not Answer a question unless you are 120% sure it will completely address the question. When the question is answered, it gets moved into the Locked Section, thus reducing the potential responses.

If you post your response as a comment, then the question gets more visibility in the Unanswered Section. If the asker feels that your comment is an appropriate response for their question they have the ability of accepting it as an answer and awarding you the points.

tulin, please reject Cedric80's answer and let us know the status of your problem. If either my or bekeye's solution solved your problem you should award us the points.
Avatar of tulin

ASKER

Thank you experts,
next few days I will notify you about status of the problem...
Avatar of tulin

ASKER

Thank  you.