使用ANSICON .EXE时转义序列报错问题求助
ANSICON .EXE时转义序列报错问题求助
各位好,我在使用ANSICON配置批处理文本样式的时候碰到了问题,想请大家帮忙看看我哪里操作错了。
我的批处理文件内容是这样的:
ansicon -p [0;30;4;40mThis is a sentence.[0;1;31;40mThis is a sentence too. pause
说明:我这里是用0x1b来代表ESC转义字符的
下面是两种运行情况的现象:
- 当我在批处理开头加上
@echo off后,运行只出现报错:'s not recognized as an internal or external command, operable program or batch file. - 如果用
@echo on运行,输出内容如下,但同样还是会出现那串报错:C:\Users\Admin\Downloads\Aranesp_injection_reminder\ANSICON>ansicon -p C:\Users\Admin\Downloads\Aranesp_injection_reminder\ANSICON>This is a sentence.This is a sentence too. 's not recognized as an internal or external command, operable program or batch file.
实在搞不清问题出在哪,有没有大佬能指点一下?
备注:内容来源于stack exchange,提问作者Einar Flaathe




