I'm writing a complex batch file and i require one of the variables in the file to be what the current time zone of the machine is set to.
so far i have:
This returns:
All I need is the last part: "Eastern Standard Time" put into a variable.
I'm totally stuck, anyone know how to do this?
I know to change the time zone you do:
but i don't need to change it, i need to know what it's set at currently.
so far i have:
reg query HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation /v standardname | FIND "REG_SZ"
This returns:
standardname REG_SZ Eastern Standard Time
All I need is the last part: "Eastern Standard Time" put into a variable.
I'm totally stuck, anyone know how to do this?
I know to change the time zone you do:
RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Eastern Standard Time
but i don't need to change it, i need to know what it's set at currently.