ここ数ヶ月、会社でメールを送信する際、待ち時間が長いので
何かおかしいと思い、色々調べてみました。
検索していると、ローカルホストのDNS逆引きや-Hや-Rのオプションをつけるといった解決方法が記載されていました。
それを色々試してみたが、一向に改善せず。
諦めかけていましたが、もう1台のメールサーバーではサクサク送信できているので
そのサーバーの起動スクリプトと比べてみたところ、アッサリ解決。
該当サーバーでは、迷惑メール対策の一環として世界共通のブラックリスト「Mail Abuse Prevention System Realtime Blackhole List(MAPS RBL)」を利用していました。
rblsmtpdはTCPServer(ucspi-tcp-0.88)のパッケージに含まれており、
続きを読む…»
Dim oShell As Object, oExec As Object
'オブジェクト変数に参照をセットします
Set oShell = CreateObject("WScript.Shell")
Set oExec = oShell.Exec("C:\example.exe")
'処理完了を待機
Do Until oExec.Status: DoEvents: Loop
'戻り値をセット
If Not oExec.StdErr.AtEndOfStream Then
ExecCommand = True
sResult = oExec.StdErr.ReadAll
ElseIf Not oExec.StdOut.AtEndOfStream Then
sResult = oExec.StdOut.ReadAll
End If
'オブジェクト変数の参照を解放
Set oExec = Nothing: Set oShell = Nothing
'結果を表示
MsgBox sResult
org.apache.httpクラスを使ってHTTP通信をおこないます。
AndroidManifest.xmlにインターネット接続許可の記述を追加します。
<uses-permission android:name="android.permission.INTERNET" />
Getメソッド
public String doGet( String url )
{
try
{
HttpGet method = new HttpGet( url );
DefaultHttpClient client = new DefaultHttpClient();
// ヘッダを設定する
method.setHeader( "Connection", "Keep-Alive" );
HttpResponse response = client.execute( method );
int status = response.getStatusLine().getStatusCode();
if ( status != HttpStatus.SC_OK )
throw new Exception( "" );
return EntityUtils.toString( response.getEntity(), "UTF-8" );
}
catch ( Exception e )
{
return null;
}
}
アイコンキャッシュのファイル「IconCache.db」を削除し、再起動します。
C:\Documents and Settings\Administrator\Local Settings\Application Data