Forum Discussion
AlexanderM
15 years agoStaff
Hello Madhi,
Below, is a sample script demonstrating how to change the local time zone:
function Main()
{
// Time zones:
// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
var timezone = "Central Europe Standard Time";
setTimeZone(timezone);
}
function setTimeZone(timezone)
{
var WshShell = Sys.OleObject("WScript.Shell");
var cmdLine = "RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z";
var WshShellExec = WshShell.Exec(cmdLine + timezone);
}
Related Content
- 11 years ago
- 5 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 7 days ago