Okonomiyaki3000
Okonomiyaki3000

Reputation: 3696

Launch program with specific env settings from cmd

So, if using bash, I might do something like:

HTTP_PROXY=http://my.proxy.com:8080 ./some_app

and the app would launch and use the proxy I've specified. Is there any way to do this kind of thing with CMD on Windows?

Upvotes: 1

Views: 61

Answers (1)

Harry Johnston
Harry Johnston

Reputation: 36308

Yes.

 SET HTTP_PROXY=http://my.proxy.com:8080
 .\some_app

Upvotes: 2

Related Questions