Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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"
- )
- rem Prepare a file "X" with only one dot
- <nul > X set /p ".=."
- call :color 1a "a"
- call :color 1b "b"
- call :color 1c "^!<>&| %%%%"*?"
- exit /b
- :color
- set "param=^%~2" !
- set "param=!param:"=\"!"
- findstr /p /A:%1 "." "!param!\..\X" nul
- <nul set /p ".=%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%%DEL%"
- exit /b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement