%TZ=EST /blah/blah/runsrever
in Windows
Any help is appreciated.
YuriW
> I need to find a similar way like in Unix:
>
> %TZ=EST /blah/blah/runsrever
>
> in Windows
Hi
Time zone change from command line (Win2k/WinXP):
Control.exe TIMEDATE.CPL,,/Z (GMT-08:00) Pacific Time (US & Canada); Tijuana
alternatively:
RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT-08:00) Pacific
Time (US & Canada); Tijuana
where '(GMT-08:00) Pacific Time (US & Canada); Tijuana' is the timezone to be
set.
Input value behind /Z is from the Display value under the registry key
'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones'
You can use the Std value in those registry keys as well, this is equivalent
with "(GMT-08:00) Pacific Time (US & Canada); Tijuana":
Control.exe TIMEDATE.CPL,,/Z Pacific Standard Time
--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter
"Torgeir Bakken (MVP)" <Torgeir.B...@hydro.com> wrote in message
news:3F70A443...@hydro.com...