Chui-Wen's profileChui-Wen Chiu's NoteBlogListsGuestbookMore Tools Help

Blog


    10/14/2009

    Vista 開機自動執行時間校正程式 timer_sync.py

    Vista 有非常討厭的 UAC 機制,對於我的 timer_sync.py 程式因為需要修改系統時間辜需要透過 Administrator 權限才能執行,如果將 python.exe 設為 Administrator 身份執行,每次都會出現提示也很困擾,一個解決辦法是透過”工作排程”,以下示範我的作法

    首先下圖是最終完成畫面,右下角的執行可用於測試

    image

    要建立一個工作,首先在 Window 右鍵選單執行”建立工作”,這步驟比較重要的是勾取”以最高權限執行”

    image

    接著是設定觸發時間點

    image

    然後設定要執行的程式

    image

    image

    因為我的程式需要網路連線,所以在設定條件

    image

    這樣就完成工作排程的設定,當你完成設定之後,他會詢問執行程式的帳號米碼,之後排程執行時就不需要再次輸入。以後開機就會自動執行時間校正,這樣也免除將 python.exe 設為 Administrator 執行的困擾

    相關文章
    [1] [Python] Windows 時間校正

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://chuiwenchiu.spaces.live.com/blog/cns!CA5D9227DF9E78E8!3842.trak
    Weblogs that reference this entry
    • None