Lhaplusのコマンドライン圧縮と解凍

デスクトップに解凍してそこに移動

rem デスクトップに解凍
cd %homepath%\デスクトップ
"C:\Program Files\Lhaplus\Lhaplus.exe" /od %1
cd %~n1

圧縮処理

rem 圧縮処理
cd imgmain
"C:\Program Files\Lhaplus\Lhaplus.exe" /c:zip /o:.\ /n:.\imgmain .\*

コマンドラインで圧縮

zip.vbs

コマンド

Cscript.exe c:\windows\system32\MakeZIP.VBS 書庫.zip 圧縮するファイル
  • デスクトップにある全てのmp3ファイルを圧縮する(remを外せば元ファイルを消す)
cd %homepath%\デスクトップ
for %%f in (*.mp3) do Cscript.exe c:\windows\system32\MakeZIP.VBS mp3.zip %%f
rem del *.mp3

解凍してコピーして元を消すバッチファイル

解凍してコピーして元を消すバッチファイル

cd "C:\Documents and Settings\user\デスクトップ"
unzip 20140519183812mallcsv.zip
copy /y item.csv "Z:\送り先ディレクトリ名\"
del /Q item.csv

mailqの出力から削除コマンドを作り出す秀マクロ

  • "/usr/sbin/postsuper -d"をコピーしておく
	setcompatiblemode 0x0F;
	searchdown "xxx@xxx.com" , regular, nocasesense, hilight;
	if( ! result )  beep;
	up 3;
	right;
	paste;
	right 10;
	insert ";";
	beginsel;
	down 3;
	backspace;
  • 整形するとこうなる
19BB22A492     1619 Fri Mar 14 08:19:57  yyyyyy@google.com
(host mail.zzzz.ne.jp[ee.ff.gg.hh] said: 450 Client host rejected: cannot find your hostname, [aa.bb.cc.dd] (in reply to RCPT TO command))
                                         xxx@xxx.com
↓
/usr/sbin/postsuper -d 19BB22A492;