Visit/win-en: Difference between revisions
Jump to navigation
Jump to search
m (lang=bat) |
m (typo) |
||
| Line 9: | Line 9: | ||
@powershell -NonInteractive -Command "$OldList = Get-WinUserLanguageList; $enUS = New-WinUserLanguageList -Language en-US; Set-WinUserLanguageList -LanguageList $enUS -Force *>$null; Start-Process visit; Start-Sleep 1; Set-WinUserLanguageList -LanguageList $OldList -Force *>$null" | @powershell -NonInteractive -Command "$OldList = Get-WinUserLanguageList; $enUS = New-WinUserLanguageList -Language en-US; Set-WinUserLanguageList -LanguageList $enUS -Force *>$null; Start-Process visit; Start-Sleep 1; Set-WinUserLanguageList -LanguageList $OldList -Force *>$null" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
where the starting with <code>@powershell</code> is ''one single line'', into a file <code>visit_en.cmd</code> at a suitable location (e.g. the desktop). | where the line starting with <code>@powershell</code> is ''one single line'', into a file <code>visit_en.cmd</code> at a suitable location (e.g. the desktop). | ||
Latest revision as of 14:09, 17 April 2024
Copy the following code
@rem Launch visit (https://visit-dav.github.io/visit-website) with
@rem an English GUI on a non-English Windows machine.
@rem The sleep of 1 second is necessary to give visit time to launch
@rem before the language is reverted again. The sleep shouldn't be too
@rem long, because the language change affects the keyboard layout,
@rem too. L.B. 2024
@powershell -NonInteractive -Command "$OldList = Get-WinUserLanguageList; $enUS = New-WinUserLanguageList -Language en-US; Set-WinUserLanguageList -LanguageList $enUS -Force *>$null; Start-Process visit; Start-Sleep 1; Set-WinUserLanguageList -LanguageList $OldList -Force *>$null"
where the line starting with @powershell is one single line, into a file visit_en.cmd at a suitable location (e.g. the desktop).