Forum Discussion
Madhi
15 years agoContributor
function tz
'// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones'Eastern Time (US & Canada)
timezone = "Eastern Time (US & Canada)"
setTimeZone(timezone)
End function
function setTimeZone(timezone)
Set WshShell = CreateObject("WScript.Shell")
cmdLine = "RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z"
WshShellExec = WshShell.Run(cmdLine + timezone)
end function
My function above in vbscript. I get no errors but I dont see the changes effected.
Related Content
- 11 years ago
- 5 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 7 days ago