レス書き込み
スレへ戻る
写
レス栞
レス消
【.cmd】 バッチファイルスクリプト %15 【.bat】
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>409 > WMI(CIM)が楽かな。 > powershellでもVBScriptでもwmicでもお好きなもので。 > > PowerShell版: > $enabledCd = 0 > $disabledCd = 22 > $methodName = $null > $device = Get-CimInstance -Query 'select * from Win32_PnpEntity where Name = "Fax"' > if ($device.Status -eq 'OK' -and $device.ConfigManagerErrorCode -eq $enabledCd) { > $methodName = 'Disable' > } > elseif ($device.Status -eq 'Error' -and $device.ConfigManagerErrorCode -eq $disabledCd) { > $methodName = 'Enable' > } > if (! [string]::IsNullOrEmpty($methodName)) { > $result = Invoke-CimMethod -InputObject $device -MethodName $methodName > $result > } > > ワンライナー版: > powershell -c "$d=gcim -cl Win32_PnpEntity -f 'Name=''Fax'''; $s,$c=$d.Status,$d.ConfigManagerErrorCode; if($n=if($s -eq 'OK' -and $c -eq 0){'Disable'}elseif($s -eq 'Error' -and $c -eq 22){'Enable'}){$d|icim -m $n}"
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.012s