Last active
February 11, 2018 11:22
-
-
Save 27Cobalter/0a610ddc81d6b4365024e7e04bfebad3 to your computer and use it in GitHub Desktop.
exPluginのCSVに追加しやすくする何か
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem pecoをのバイナリをダウンロードしてPATHに追加してhttps://github.com/peco/peco/releases | |
chcp 65001 | |
rem 追加するファイル | |
set FILE="C:\Users\hoge\AppData\Local\Yukarinette\plugins\exPlugin.dll.csv" | |
rem 探索するディレクトリ | |
set DIR="E:\Sound" | |
set USER_INPUT="" | |
set WAVPATH="" | |
:LOOP | |
for /F "delims=*" %%a in ('where /r %DIR% *.wav *.mp3 *.mp4 ^| peco ') do @set WAVPATH=%%a | |
if "%WAVPATH%"=="""" goto LOOP | |
set /P USER_INPUT="%WAVPATH%を発火させる単語:" | |
if "%USER_INPUT%"=="""" goto LOOP | |
echo %USER_INPUT%,%WAVPATH%>> %FILE% | |
echo %USER_INPUT%,%WAVPATH%を%FILE%に追加しました キーを押すと次に移ります | |
timeout 10 | |
set USER_INPUT="" | |
set WAVPATH="" | |
goto LOOP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment