You can use it from the command line or batch scripts without having to define it.Using the Custom Environment VariableAs stated above, your custom environment variable is no different than any other system variable as you can reference it from the command line and inside of scripts. Select the “Advanced system settings” link.In the System Properties dialog, click “Environment Variables”.In the Environment Variables dialog, click the New button underneath the “System variables” section.Enter the name of your new variable as well the value and click OK.You should now see your new variable listed under the “System variables” section.Ĭlick OK to apply the changes.You can now access your new system environment variable like you would any other. Please note the screenshots are for Windows Server 2008, however the process for most versions of Windows is almost identical with only a few of the screens different.In the Control Panel, open the System option (alternately, you can right-click on My Computer and select Properties). Creating a Custom System Environment VariableCreating a new global system variable is quite simple and is one of those features hiding in plain sight. If you find yourself using a particular value over and over, wouldn’t it be great if you had your own variable which you can use the same way as the built in values?With a few clicks, you can create and maintain you own environment variables which are both global on the system and survive reboots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |