@echo off (for /f "delims=" %%a in (1.txt) do (for %%b in (%%a) do set/p=0x%%b $2.txt这个要想再加上逗号改如何改.比如15 1c 22 2e 55变成:0x15,0x1c,0x22,0x2e,0x55,谢谢了大哥.这个批处理语法真不知道.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 23:33:43
@echooff(for/f"delims="%%ain(1.txt)do(for%%bin(%%a)doset/p=0x%%b$2.txt这个要想再加上逗号改如何改.比如151c222e55变成:0

@echo off (for /f "delims=" %%a in (1.txt) do (for %%b in (%%a) do set/p=0x%%b $2.txt这个要想再加上逗号改如何改.比如15 1c 22 2e 55变成:0x15,0x1c,0x22,0x2e,0x55,谢谢了大哥.这个批处理语法真不知道.
@echo off (for /f "delims=" %%a in (1.txt) do (for %%b in (%%a) do set/p=0x%%b $2.txt
这个要想再加上逗号改如何改.比如
15 1c 22 2e 55
变成:
0x15,0x1c,0x22,0x2e,0x55,
谢谢了大哥.这个批处理语法真不知道.

@echo off (for /f "delims=" %%a in (1.txt) do (for %%b in (%%a) do set/p=0x%%b $2.txt这个要想再加上逗号改如何改.比如15 1c 22 2e 55变成:0x15,0x1c,0x22,0x2e,0x55,谢谢了大哥.这个批处理语法真不知道.
set/p=0x%%b