hiko-blog

VBA業務改善

MENU

バッチでランチャ

@echo off
title MyLauncher

:: ウィンドウの列数を変更(例: 100)
mode con cols=100

:: ウィンドウの行数を変更(例: 30)
mode con lines=30

set "Ph1=C:\Program Files\Google\Chrome\Application\chrome.exe"
set "Ph2=D:\***\IDM.exe"
set "Ph3=D:\***\Mery.exe"
set "Ph4=D:\***\TeraPad.exe"
set "Ph5=D:\***\sakura.exe"
set "Ph6=D:\***\example6.exe"
set "Ph7=D:\***\example7.exe"
set "Ph8=D:\***\example8.exe"
set "Ph9=D:\***\example9.exe"
set "Ph10=D:\***\example10.exe"
set "Ph11=D:\***\example11.exe"
set "Ph12=D:\***\example12.exe"
set "Ph13=D:\***\example13.exe"
set "Ph14=D:\***\example14.exe"
set "Ph15=D:\***\example15.exe"
set "Ph16=D:\***\example16.exe"
set "Ph17=D:\***\example17.exe"
set "Ph18=D:\***\example18.exe"
set "Ph19=D:\***\example19.exe"
set "Ph20=D:\***\example20.exe"

:menu
cls
echo 1. Google Chromeを開く
echo 2. IDMを開く
echo 3. Meryを開く
echo 4. TeraPadを開く
echo 5. Sakuraを開く
echo ---------------------------
echo 6. Example6を開く
echo 7. Example7を開く
echo 8. Example8を開く
echo 9. Example9を開く
echo 10. Example10を開く
echo ----------------------------
echo 11. Example11を開く
echo 12. Example12を開く
echo 13. Example13を開く
echo 14. Example14を開く
echo 15. Example15を開く
echo ----------------------------
echo 16. Example16を開く
echo 17. Example17を開く
echo 18. Example18を開く
echo 19. Example19を開く
echo 20. Example20を開く
echo ---------------------------
echo 21. メモ帳を開く
echo 22. エクスプローラーを開く
echo 23. 終了
echo ---------------------------

set /p choice=選択して Enter キーを押してください: 

if "%choice%"=="" goto menu
if "%choice%"=="1" start "" "%Ph1%" --incognito & goto menu
if "%choice%"=="2" start "" "%Ph2%" & goto menu
if "%choice%"=="3" start "" "%Ph3%" & goto menu
if "%choice%"=="4" start "" "%Ph4%" & goto menu
if "%choice%"=="5" start "" "%Ph5%" & goto menu
if "%choice%"=="6" start "" "%Ph6%" & goto menu
if "%choice%"=="7" start "" "%Ph7%" & goto menu
if "%choice%"=="8" start "" "%Ph8%" & goto menu
if "%choice%"=="9" start "" "%Ph9%" & goto menu
if "%choice%"=="10" start "" "%Ph10%" & goto menu
if "%choice%"=="11" start "" "%Ph11%" & goto menu
if "%choice%"=="12" start "" "%Ph12%" & goto menu
if "%choice%"=="13" start "" "%Ph13%" & goto menu
if "%choice%"=="14" start "" "%Ph14%" & goto menu
if "%choice%"=="15" start "" "%Ph15%" & goto menu
if "%choice%"=="16" start "" "%Ph16%" & goto menu
if "%choice%"=="17" start "" "%Ph17%" & goto menu
if "%choice%"=="18" start "" "%Ph18%" & goto menu
if "%choice%"=="19" start "" "%Ph19%" & goto menu
if "%choice%"=="20" start "" "%Ph20%" & goto menu
if "%choice%"=="21" start notepad.exe & goto menu
if "%choice%"=="22" start explorer.exe & goto menu
if "%choice%"=="23" exit
goto menu