Windows 10: Multiple Values for a single Local-Variable Second value be used as an alternative when...

Discus and support Multiple Values for a single Local-Variable Second value be used as an alternative when... in Windows 10 Gaming to solve the problem; Hello everyone. I use many services that use XDG mainly AI projects and these projects cache of XDG can be huge in size. The cache location can be... Discussion in 'Windows 10 Gaming' started by Astra 076, Oct 6, 2023.

  1. Astra 076 Win User

    Multiple Values for a single Local-Variable Second value be used as an alternative when...


    Hello everyone. I use many services that use XDG mainly AI projects and these projects cache of XDG can be huge in size. The cache location can be manually defined with XDG_CACHE_HOME a user-variable. I was wondering, is there a way to define an alternative for an environment variable? If the first value was not available, try the seconds value, something like this.This is because I use Whisper for speech recognition, and Godot for making game, and I store the project whisper files in an external drive which the project is stored on it as well. meanwhile I don't connect this Drive to my syst

    :)
     
    Astra 076, Oct 6, 2023
    #1

  2. Use the value of Task Sequence Variable as the value of another Task Sequence Variable

    Hi everybody,

    Does anybody know whether it is possible to use the value of an Task Sequence Variable as the value of another Task Sequence Variable?

    For example, TS variable A has the value of 8. And I want to use this as the value of variable Q.

    What I did was Set Task Sequence Variable. I named it Q. And at value I entered %A%.

    This didn't work. Apparently I am doing something wrong. Could anybody tell me what?

    Kind regards,

    Hasan
     
    HasanÖrdek, Oct 6, 2023
    #2
  3. How to call a registry key value under an environment variable ?

    I want to call a registry value Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX\Version Key value under any Environment variable. Is it possible ?
     
    AbhishekMR, Oct 6, 2023
    #3
  4. Multiple Values for a single Local-Variable Second value be used as an alternative when...

    How do I copy the value of a Registry Key, or part of the value, using a .reg file?

    Hello! My name is Cristiano. I'm an Independent Advisor. I'm glad to help you.

    To do that, you can use the Registry Editor's export feature to create a .reg file that contains the registry key or value you want to copy. Then you can modify the .reg file to change the registry key or value as needed.

    To copy the value of a registry key, you can export the key and modify the exported .reg file to change the key name and value. For example, to change the "FeatureDisableKey" value to "FeatureEnableKey", you can export the following key:

    [HKEY_CLASSES_ROOT\Some\Key\Location]

    "FeatureDisableKey"="some_unknown_value"

    Then, open the exported .reg file in a text editor and change the key name and value to:

    [HKEY_CLASSES_ROOT\Some\Key\Location]

    "FeatureEnableKey"="some_unknown_value"

    To copy a part of the value of a registry key, you can use the REG_EXPAND_SZ value type, which allows you to include environment variables in the value. For example, to change the path to the application in the following key:

    [HKEY_CURRENT_USER\SOFTWARE\Classes\Application\shell\open\command]

    @=""Root_Directory\Some_Application.exe""

    You can use the %ProgramFiles% environment variable to reference the Program Files directory on any computer. To do this, export the key and modify the exported .reg file to use the REG_EXPAND_SZ value type and include the %ProgramFiles% environment variable in the value. For example:

    [HKEY_CURRENT_USER\SOFTWARE\Classes\Application\shell\open\command]

    @=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,

    00,6c,00,65,00,73,00,25,00,5c,00,44,00,69,00,66,00,66,00,65,00,72,00,65,

    00,6e,00,74,00,5f,00,41,00,70,00,70,00,6c,00,69,00,63,00,61,00,74,00,69,

    00,6f,00,6e,00,73,00,5c,00,44,00,69,00,66,00,66,00,65,00,72,00,65,00,6e,

    00,74,00,5f,00,41,00,70,00,70,00,6c,00,69,00,63,00,61,00,74,00,69,00,6f,

    00,6e,00,2e,00,65,00,78,00,65,00,22,00,00,00

    In the above example, the value of the "(Default)" registry value is set to "Root_Directory\Different_Application.exe". When the .reg file is merged into the registry, the "%ProgramFiles%" environment variable is expanded to the Program Files directory on the computer where the file is being merged. Note that the value is in hex format, which is required for REG_EXPAND_SZ values.

    Once you have modified the .reg file to your satisfaction, you can distribute it to users for them to import into their registry by double-clicking on the file.
     
    Cristiano Rocha1, Oct 6, 2023
    #4
Thema:

Multiple Values for a single Local-Variable Second value be used as an alternative when...

Loading...
  1. Multiple Values for a single Local-Variable Second value be used as an alternative when... - Similar Threads - Multiple Values single

  2. PASSKEYS - value?

    in Windows 10 Software and Apps
    PASSKEYS - value?: PASSKEYs seem to be the new web thing beyond passwords. My question is - using a 4-digit passkey like 1234 on one site, can the same 4-digit passkey be used safely on "all" other sites, or do we need to have unique passkeys for each site as we now have unique passwords? It...
  3. PASSKEYS - value?

    in AntiVirus, Firewalls and System Security
    PASSKEYS - value?: PASSKEYs seem to be the new web thing beyond passwords. My question is - using a 4-digit passkey like 1234 on one site, can the same 4-digit passkey be used safely on "all" other sites, or do we need to have unique passkeys for each site as we now have unique passwords? It...
  4. Single values in the foreign address section when running the 'netstat' command?

    in Windows 10 Gaming
    Single values in the foreign address section when running the 'netstat' command?: When running the netstat command I noticed that I am establishing connections with foreign addresses that have single values to them, what are they?...
  5. Single values in the foreign address section when running the 'netstat' command?

    in Windows 10 Software and Apps
    Single values in the foreign address section when running the 'netstat' command?: When running the netstat command I noticed that I am establishing connections with foreign addresses that have single values to them, what are they?...
  6. Single values in the foreign address section when running the 'netstat' command?

    in AntiVirus, Firewalls and System Security
    Single values in the foreign address section when running the 'netstat' command?: When running the netstat command I noticed that I am establishing connections with foreign addresses that have single values to them, what are they?...
  7. Multiple Values for a single Local-Variable Second value be used as an alternative when...

    in Windows 10 Software and Apps
    Multiple Values for a single Local-Variable Second value be used as an alternative when...: Hello everyone. I use many services that use XDG mainly AI projects and these projects cache of XDG can be huge in size. The cache location can be manually defined with XDG_CACHE_HOME a user-variable. I was wondering, is there a way to define an alternative for an environment...
  8. Multiple Values for a single Local-Variable Second value be used as an alternative when...

    in Windows 10 Customization
    Multiple Values for a single Local-Variable Second value be used as an alternative when...: Hello everyone. I use many services that use XDG mainly AI projects and these projects cache of XDG can be huge in size. The cache location can be manually defined with XDG_CACHE_HOME a user-variable. I was wondering, is there a way to define an alternative for an environment...
  9. How to call a registry key value under an environment variable ?

    in Windows 10 Customization
    How to call a registry key value under an environment variable ?: I want to call a registry value Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DirectX\Version Key value under any Environment variable. Is it possible ?...
  10. Use the value of Task Sequence Variable as the value of another Task Sequence Variable

    in Windows 10 Installation and Upgrade
    Use the value of Task Sequence Variable as the value of another Task Sequence Variable: Hi everybody, Does anybody know whether it is possible to use the value of an Task Sequence Variable as the value of another Task Sequence Variable? For example, TS variable A has the value of 8. And I want to use this as the value of variable Q. What I did was Set Task...