问题
How can I change the List separator from the command line?
Normally I have to edit a field in: Control Panel → Change keyboards or other input methods → Additional settings
I would love to create a VBScript that I click which automatically changes from ,
to ;
, and another one that goes back.
回答1:
A single script should suffice. The setting is stored in the registry value HKCU\ControlPanel\International\sList
and can be toggled with something like this:
Set sh = CreateObject("WScript.Shell")
path = "HKCU\Control Panel\International\sList"
Set separator = CreateObject("Scripting.Dictionary")
separator.Add True , ";"
separator.Add False, ","
sh.RegWrite path, separator(sh.RegRead(path) = ","), "REG_SZ"
来源:https://stackoverflow.com/questions/27451930/list-separator-script