Set Environment Variable from CMD

January 6, 2014

no comments

How to set Environment Variable from CMD ?

If you need to change environment variable via command line, this post show you how is simple.

Let`s say you need to change environment variable  “SAPLOGON_INI_FILE”  from c:\windows\SAPLogon.ini to c:\sap\SAPLogon.ini.

#Setx Command

Setx, Creates or modifies environment variables.

You can make any change in the user or system environment.

You can read more about Setx command here.

#Modify environment

Open CMD and run this command:

c:\>setx SAPLOGON_INI_FILE c:\sap\SAPLogon.ini


That’s it !

– Skepper –

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


This site uses Akismet to reduce spam. Learn how your comment data is processed.