[tips0135.vbs] Option Explicit On Error Resume Next Dim objShell ' Shell オブジェクト Dim objFolder ' フォルダ情報 Set objShell = WScript.CreateObject("Shell.Application") If Err.Number = 0 Then Set objFolder = objShell.NameSpace(10) objFolder.Items.Item.InvokeVerb "ごみ箱を空にする(&B)" Else WScript.Echo "エラー: " & Err.Description End If Set objFolder = Nothing Set objShell = Nothing