Specify environmental variable when starting command prompt?

D

Don Culp

From the Run... option of the Start menu or from a shortcut in my Startup
folder, is there any way to set an environmental variable at the same time
that I'm opening a command prompt window. From the Run prompt I have tried:
cmd "SET ALGMEM=2000" (also without the " ") but this doesn't work. I
realize that I can manually set the ALGMEM environmental variable after the
cmd window opens but I'd like to avoid this since I need to open many of
these cmd windows, all with the same environmental variable. (Setting a
global ALGMEM environmental variable via the control panel interferes with a
Windows program that also uses the same environmental variable so this is
not an option.)

Thanks,
Don Culp
 
P

Pegasus \(MVP\)

Don Culp said:
From the Run... option of the Start menu or from a shortcut in my Startup
folder, is there any way to set an environmental variable at the same time
that I'm opening a command prompt window. From the Run prompt I have
tried:
cmd "SET ALGMEM=2000" (also without the " ") but this doesn't work. I
realize that I can manually set the ALGMEM environmental variable after
the
cmd window opens but I'd like to avoid this since I need to open many of
these cmd windows, all with the same environmental variable. (Setting a
global ALGMEM environmental variable via the control panel interferes with
a
Windows program that also uses the same environmental variable so this is
not an option.)

Thanks,
Don Culp

Type this in your run box:
cmd /k set algmem=2000

or even better
cmd /f:blush:n /k set algmem=2000 & mode con lines=50
 

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