用 reg 吧, 我以 outlook 2003 為例,開啟outlook 2003 讀取回條指令如下
reg add HKCU\software\Microsoft\office\11.0\outlook\preferences /v readreceipt /t REG_DWORD /d 1 /f
wm19提到:
Receipt Response
我找到Microsoft Outlook 2010
<pre class="c" name="code">reg add HKCU\software\Microsoft\office\14.0\outlook\preferences /v readreceipt /t REG_DWORD /d 1 /f
reg add HKCU\software\Microsoft\office\14.0\outlook\preferences /v DeliveryReceipt /t REG_DWORD /d 1 /f
reg add HKCU\software\Microsoft\office\14.0\outlook\Options\Mail /v "Receipt Response" /t REG_DWORD /d 0 /f
XP裡沒有setx.exe請到這裡下載 http://www.microsoft.com/downloads/zh-tw/details.aspx?familyid=49ae8576-9bb9-4126-9761-ba8011fabf38
批次檔的方式讓Outlook Express 永遠傳送讀取回條(w)及所有傳送的郵件都要讀取回條(R)
建立一個123.txt檔,用記事本開起,把以下程式碼貼上儲存,把123.txt改為123.bat後執行
<pre class="c" name="code">setx.exe BUILD -k "HKEY_CURRENT_USER\Identities\Default User ID" >c:\2008.txt
setx.exe BUILD ""
FOR /F "tokens=4* delims= " %%G IN (c:\2008.txt) DO @set abc=%%G
REG ADD "HKCU\Identities\%abc%\Software\Microsoft\Outlook Express\5.0" /v "RequestMDN" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Identities\%abc%\Software\Microsoft\Outlook Express\5.0" /v "SendMDN" /t REG_DWORD /d 1 /f
rem echo %abc%
set abc=
rem echo %abc%
另外建議一個不用 setx 的方式, 一樣需將下面的指令存 bat 檔
<pre class="c" name="code">
@for /f "usebackq tokens=1* delims=\" %%i in (`reg query hkcu\identities /f "outlook express\5.0" /s /v RequestMDN`) do @(
if not "%%j"=="" (
reg add "HKCU\%%j" /v RequestMDN /t REG_DWORD /d 0 /f
)
)
上面程式是關閉回條的, 弄錯了,正確的如下
<pre class="c" name="code">
@for /f "usebackq tokens=1* delims=\" %%i in (`reg query hkcu\identities /f "outlook express\5.0" /s /v RequestMDN`) do @(
if not "%%j"=="" (
reg add "HKCU\%%j" /v RequestMDN /t REG_DWORD /d 1 /f
)
)