Jump to content

Specify environmental variable when starting command prompt?


Recommended Posts

Guest Don Culp
Posted

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

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Specify environmental variable when starting command prompt?

 

 

"Don Culp" <dculp@krell-engineering.com> wrote in message

news:Ol67gPfyHHA.4640@TK2MSFTNGP03.phx.gbl...

> 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:on /k set algmem=2000 & mode con lines=50


×
×
  • Create New...