I would like to run a script for each language. I need a way to find which os language is being used, using batch files. Both on windows XP, and on Windows 7.
in cmd: reg query "HKEY_CURRENT_USER\Keyboard Layout\Preload"
this produces:
HKEY_CURRENT_USER\Keyboard Layout\Preload
2 REG_SZ 00000419
1 REG_SZ 00000809
like the first answer you then parse the rightmost numbers using this or this site
if the left most number is number 1 that is the current keyboard language in use currently.