@echo off (for /f "delims=" %%a in (1.txt) do (for %%b in (%%a) do set/p=0x%%b $2.txt
问题描述:
@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