UID:416486351285 帖
2021-03-28 12:45+5
无用的一个1-8转q-i小脚本
放置桌面使用。1-8的谱子放a.txt。这个代码放bat文件里。然后生成的test.txt是q-i谱子
@echo off
set sp=C:\Users\ASUS\Desktop
set cf=a.txt
for /r %sp% %%a in (%cf%) do (call :doit "%%~dpa")
goto end
:doit
setlocal enabledelayedexpansion
pushd %1
for /f "tokens=1-4* delims=:" %%i in ('findstr /n ".*" %cf%') do (
set txt=%%j:%%k:%%l
set output=!txt!
set "output=!output:1=q!"
set "output=!output:2=w!"
set "output=!output:3=e!"
set "output=!output:4=r!"
set "output=!output:5=t!"
set "output=!output:6=y!"
set "output=!output:7=u!"
set "output=!output:8=i!"
set "output=!output::=!"
echo !output! >> a.tmp
)
move /y a.tmp test.txt
:end
exit
已编辑
拍子乱掉了还能有那个feel