Windows 10: How to create permanent environment variable but only for a single .exe file

Discus and support How to create permanent environment variable but only for a single .exe file in Windows 10 Customization to solve the problem; To resolve an issue on my high-resolution screen when using a particular board game app, I have been correctly advised to use a workaround... Discussion in 'Windows 10 Customization' started by DavidA3MP, Nov 26, 2020.

  1. DavidA3MP Win User

    How to create permanent environment variable but only for a single .exe file


    To resolve an issue on my high-resolution screen when using a particular board game app, I have been correctly advised to use a workaround KIVY_METRICS_FONTSCALE=2 instruction in the CMD screen, which enlarges fonts. Its a GitHub developer's app and he will release permanent adjustments in due course.


    For now, he has helpfully suggested that, instead of always having to resolve the issue by keying in 'set KIVY_... ' then starting his app, both within the CMD screen every time, I could add the KIVY variable to myUser Environmental Variables not the System Variables. That way, I could just click to start the app in the normal way, with having to use the CMD screen steps each time.


    What exactly should I type in the Advanced Settings EV NEW dialogue boxes to establish the variable, so that it only affects this particular app? Reason: there may be other apps in my PC using Kivy stuff which do not require this font scaling adjustment and a global variation might wrongly interfere with them.


    Thank you!

    :)
     
    DavidA3MP, Nov 26, 2020
    #1
  2. MCK
    mck Win User

    System environment variable won't stick

    Running Win10 Home on an Acer Spin 3, 64bit, i7cpu. I try to add a path to the system environment variables by:

    1. Control Panel > System > Advanced system settings > Advanced tab > Environment variables

    2. The "Environment Variables" window opens.
    3. In the "System Variables" pane I select "Path" and click the EDIT button.
    4. A list of the current system paths is displayed.
    5. I click the NEW button, browse to the path I want to add which is "C:\Python36-32" and click OK. The path "C:\Python36-32" is added to the list of current system paths.
    6. I click OK and am returned to the "Environment Variables" window.
    7. I click the "X" at the top right to close the "Environment Variables" window.

    Now if I click the "Environment Variables" button again (end of step-1) and repeat steps 2-4, the new path I added in step-5 is gone. IOW, adding a new path won't stick.

    What am I doing wrong?
     
  3. Searching environment variable in list

    I'm using a command that gives me a list of environment variables. When searching in the list, I want to find all environment variables with the word
    EXTERNAL; using the following command all that is occurring is all the environment variables are being listed instead of those environment variables with the word
    EXTERNAL ?

    findstr /c "EXTERNAL"
     
    StraightWorld, Nov 26, 2020
    #3
  4. Bob_880 Win User

    How to create permanent environment variable but only for a single .exe file

    Environment Variable

    Hi,

    I accidentally deleted the entire environment variables on my windows 10 PC. Resetting the Pc is creating a lot of problems. The reset page would only load 47% and prompted me with a message "undoing changes." Is there a way someone can suggest to resolve
    this problem?
     
    Bob_880, Nov 26, 2020
    #4
Thema:

How to create permanent environment variable but only for a single .exe file

Loading...
  1. How to create permanent environment variable but only for a single .exe file - Similar Threads - create permanent environment

  2. WSL2 and Environment Variables

    in Windows 10 Customization
    WSL2 and Environment Variables: I am trying to install Selenium and build a python application that includes automating web page completion login info. I would like to built the program using VSCode and WSL2. I've installed selenium in WSL2. Selenium requires a webdriver api to be installed and included...
  3. Environment Variables

    in Windows 10 Customization
    Environment Variables: I am unable to add USER Variable in windows environment variable setting. Not asking for Path variables in system variables. Help will be appreciated. Thanks https://answers.microsoft.com/en-us/windows/forum/all/environment-variables/0d063cb8-ccde-465d-8b8b-d5c1ea880c78
  4. environment variable

    in Windows 10 Customization
    environment variable: What would happen when we deleted all the environment variable system directory. https://answers.microsoft.com/en-us/windows/forum/all/environment-variable/723a4cb6-5baf-4907-a56b-614f35d77da5
  5. windows environment variable

    in Windows 10 Installation and Upgrade
    windows environment variable: I have deleted all thing and every thing from windows environment variable that's why I faces problem in running programe than how can I setup environment variable again?...
  6. System Environment variables

    in Windows 10 Customization
    System Environment variables: Hello! I have been trying to run executable programs using command prompt since a long time, added the path names to the System and user environment variables as well. But it is not helping, the command prompt is unable to run any file except the inbuilds such as notepad....
  7. how to reset environment variables

    in Windows 10 Network and Sharing
    how to reset environment variables: when I am trying to execute commands in cmp it through error like it is not recognized as internal or external command,operable program or batch file. even though i am done modifications in path....
  8. User Environment Variable

    in Windows 10 Software and Apps
    User Environment Variable: Created an User Environment variable in Environment variable page in UI. It is seen in both UI and command prompt(Using set command). After restart it is not seen in command prompt when set command is used. Please help....
  9. Environment Variables

    in Windows 10 BSOD Crashes and Debugging
    Environment Variables: what will happen if i accidentally delete one of those environment variables without realizing it ? and how to fix it ? https://answers.microsoft.com/en-us/windows/forum/all/environment-variables/fedbdf36-ce8e-4861-a775-1dc62dd1c67e
  10. Create Environment Variables Shortcut in Windows

    in Windows 10 Tutorials
    Create Environment Variables Shortcut in Windows: How to: Create Environment Variables Shortcut in Windows How to Create Environment Variables Shortcut in Windows Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both...