2015年8月11日星期二

MS Outlook 2010 無端端唔見左?!

最近遇到一個情況, 有用戶重新開機後, 開啟outlook時, Task Bar 顯示程式已開啟, 但視窗畫面不見, 這個情況比較不普遍, 不過可以用下列方法解決.


首先關掉 Outlook, 然後在右下角檢查outlook的圖示, 右Click 確定沒有 Tick 到 Hide When Minimized.



跟著到開始 -> 輸入 Regedit

依照以下路徑進入:
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Office Explorer] 

看到 Office Explorer 內的 FRAME, 可以右 Click 然後 Delete.



重新開啟 MS Outlook, 這便大功告成了.

參考網址 : https://community.spiceworks.com/how_to/50838-how-to-fix-outlook-2010-window-frame-dissapearing-issue

2015年7月13日星期一

Changed Last Logon User Name

For windows XP:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="NOD32"

For Windows 7:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI]
"LastLoggedOnSAMUser"="domain\\username"
"LastLoggedOnUser"="
domain\\username"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData\1]
"LoggedOnSAMUser"="domain\\username"
"LoggedOnUsername"="
domain\\username"


2015年3月2日星期一

預設 Command Prompt 為 Run as Administrator

用 記事本 (Notepad) Copy 以下的 information

---------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Windows\\System32\\cmd.exe"="~ RUNASADMIN"
"C:\\Windows\\SysWOW64\\cmd.exe"="~ RUNASADMIN"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Windows\\System32\\cmd.exe"="~ RUNASADMIN"
"C:\\Windows\\SysWOW64\\cmd.exe"="~ RUNASADMIN"

----------------------------------------------------

然後 save as cmdadmin.reg

執行一次, 然後每次開 command prompt 會自動預設為 run as administrator

2015年2月4日星期三

DOS Command

FOR        對清單中每個成員重複執行相同指令.

Syntax:       
        FOR %%argument IN (list) DO command
            argument -     從A-Za-z任何字元皆可
            list    -    由逗號,或空格所隔開的字串皆可
            command-    指令
Example:       
        FOR %%i IN (A,B,C) DO echo %%i   
                    印出A,B,C
        FOR %%f IN (*.TXT *.BAT *.DOC) DO type %%f
                    印出所有txt, bat, doc檔案內容
        FOR %%f IN (*.PAS) DO call compile %%f
                    Complile所有PAS檔案
                       
IF    判斷式.

Syntax:       
        IF [not] condition (
            command [command-parameter]
        ) ELSE (
            command [command-parameter]
        )
Example:   
        IF string1==string2 echo string1 equal to string2
            如果string1等於string2,在螢幕上印出string1 equal to string2
        IF exist a.txt echo del a.txt   
            如果a.txt存在則刪除他       

PAUSE    暫停執行批次程式,並且顯示 Press any key to continue...

Syntax:       
        PAUSE
Example:       
        pause

SET        顯示,設定環境變數

Syntax:       
        SET [ variable=[string]]
Example:       
        set            顯示目前環境變數
        set P        列出所有以'P'開頭的環境變數
        set USER=Tom    將USER加入環境變數中
        set PATH=C:\test;%PATH%
                將C:\test加入目前的環境變數中(只對當前的Command Prompt有效)
        set /P str=Message
                在螢幕上顯示Message,並將使用者輸入設定為變數str

%Variable%    代表該環境變數的值       
                  
Syntax:       
        %Variable%
Example:       
        set USER=Tom
        echo %USER%    螢幕將顯示Tom

%DIGIT    batch file所接受的參數

Syntax:       
        %digit            digit可接受數字為1~9
Example:       
        C:\test.bat string   
                %1將等於"string"
                   
REM        註解符號

也可以用 :: 代替
Syntax:       
        REM [Message]
        :: [Message]
Example:       
        REM this is comment
        :: this is comment




參考網址: http://wt.pixnet.net/blog/post/21523331-%E6%B7%BA%E8%AB%87batch-file-command