琥珀
2011-10-29, 04:32 PM
之前為了 cdimage 時區問題,一個一個手動設定時區,感到有些麻煩。雖然多數情況不會刻意改變時區設定,不過還是找了一下資料,提供給需要的用戶。
以台北標準時間為例,通用的命令如下。有些系統可能無法支援。
rundll32[.exe] shell32[.dll],Control_RunDLL [%windir%\system32\]timedate.cpl<,| >,/z taipei standard time
control[.exe] timedate.cpl<,| >,/z taipei standard time
timedate.cpl[ ],/z taipei standard time
以下是 XP 和 2003 專用。2000 用戶可以借用,而且不用歸還。
tzchange[.exe] /c "taipei standard time"
以下是 7 和 2008 R2 專用。Vista 和 2008 用戶,參考下面說明。
tzutil[.exe] /s "taipei standard time"
針對 Vista 和 2008 用戶,微軟也提供了 tzutil.exe 程式:
TZUtil command-line tool is added to Windows Vista and to Windows Server 2008 (http://support.microsoft.com/kb/2556308/en-us) (x86 (http://hotfixv4.microsoft.com/Windows Vista/sp3/Fix369187/6000/free/435593_intl_i386_zip.exe)/x64 (http://hotfixv4.microsoft.com/Windows Vista/sp3/Fix369187/6000/free/435594_intl_x64_zip.exe))
2000 和 XP 用戶不准借用 tzutil.exe,會出現「不是正確的 Win32 應用程式」訊息。
以台北標準時間為例,通用的命令如下。有些系統可能無法支援。
rundll32[.exe] shell32[.dll],Control_RunDLL [%windir%\system32\]timedate.cpl<,| >,/z taipei standard time
control[.exe] timedate.cpl<,| >,/z taipei standard time
timedate.cpl[ ],/z taipei standard time
以下是 XP 和 2003 專用。2000 用戶可以借用,而且不用歸還。
tzchange[.exe] /c "taipei standard time"
以下是 7 和 2008 R2 專用。Vista 和 2008 用戶,參考下面說明。
tzutil[.exe] /s "taipei standard time"
針對 Vista 和 2008 用戶,微軟也提供了 tzutil.exe 程式:
TZUtil command-line tool is added to Windows Vista and to Windows Server 2008 (http://support.microsoft.com/kb/2556308/en-us) (x86 (http://hotfixv4.microsoft.com/Windows Vista/sp3/Fix369187/6000/free/435593_intl_i386_zip.exe)/x64 (http://hotfixv4.microsoft.com/Windows Vista/sp3/Fix369187/6000/free/435594_intl_x64_zip.exe))
2000 和 XP 用戶不准借用 tzutil.exe,會出現「不是正確的 Win32 應用程式」訊息。