FG

how to set ENV variable in windows CMD line

Fresh3 days ago
Mar 15, 2026156390 views
Confidence Score0%
0%

Problem

I'd like to set a temporary enviroment variable in windows CMD line, which in my word the windows shell. because it's for temporary usage, So I don't want to add a new enviroment variable system wise by clicking "my computer-->properies---" ... by the way, the envrioment variable I'd like to set is…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to set ENV variable in windows CMD line

Low Risk

To set a temporary or 'per session' environment varible from a command line you can use: Make sure your spacing is exactly as shown above, if you add a space between the equal sign the command will fail. Check: Link for a nice tutorial and info on e…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment