【.cmd】 バッチファイルスクリプト %11 【.bat】at TECH
【.cmd】 バッチファイルスクリプト %11 【.bat】 - 暇つぶし2ch4:デフォルトの名無しさん
15/02/26 21:20:03.84 rvCGpWQW.net
最近作ったバッチ cdif.bat
環境チェック用に
rem cdif.bat
@echo off
if '%1'=='' exit /B 255
pushd D:\temp ← .defファイルを保存する場所
setlocal
set z=%*
set y=%z: =%
set x=%y:/=%
%* > %x%.txt
if not exist %x%.def goto _new
set errorlevel=
diff %x%.def %x%.txt
if %errorlevel% == 0 goto _end
:_new
copy /Y %x%.txt %x%.def >nul
:_end
endlocal
popd
パラメ-タにコマンドを置くと前回実行結果との違いを表示する

cdif whoami /all
cdif net start
cdif assoc


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch