如何在此批处理函数中呼应颜色引号?

如何在此批处理函数中呼应颜色引号?

我有以下带有彩色回声功能的脚本:

@echo off
setlocal EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
  set "DEL=%%a"
)
::call :c 0b "^!<>&| abc123 %%%%"*?"
rem Prepare a file "X" with only one dot
<nul > X set /p ".=."


call :c 0f " [DBName] ["Value=Data"] ["Value=Data"] "
exit


:c
set "param=^%~2" !
set "param=!param:"=\"!"
findstr /p /A:%1 "." "!param!\..\X" nul
<nul set /p ".=%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%"
if /i not "%3"=="/n" echo.
exit /b

线路call :c 0f " [DBName] ["Value=Data"] ["Value=Data"] "不通。我怎样才能让它通电?

相关内容