@echo off set xamp_ver=%1 set xamp_link=xampp set xamp_target=%xamp_link%%xamp_ver% echo; if ""%xamp_ver%""=="""" ( echo 使い方: %0 [XAMPPのバージョン番号] echo 実行例: %0 1.2.3 goto END ) if not exist %xamp_target% ( echo Error: %xamp_target% not found goto END ) if exist %xamp_link% ( echo remove %xamp_link% rmdir %xamp_link% ) echo link %xamp_target% to %xamp_link% mklink /D %xamp_link% %xamp_target% goto END :END echo; echo 【 現在のXAMPP情報 】 echo; dir %xamp_link%*|findstr "^[0-9]"