China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 21:47
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Delete specific characters View 629 Replies 1
Original Poster Posted 2009-12-21 17:09 ·  中国 上海 电信
初级用户
★★
Credits 160
Posts 81
Joined 2006-07-27 17:52
20-year member
UID 59377
Gender Male
Status Offline
Contents of file a.txt:
00-26-B6-47-4C-12
SET WLAN_MACADDR=00-26-B6-09-C6-5C

I want to remove all the - and get
0026B6474C12
SET WLAN_MACADDR=0026B609C65C

How can this be done with a batch file.
Many thanks, waiting online
Floor 2 Posted 2009-12-21 17:39 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
银牌会员
★★★
正在学习中的菜鸟...
Credits 1,039
Posts 897
Joined 2009-03-01 15:34
17-year member
UID 140302
Gender Male
From 在地狱中仰望天堂
Status Offline
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
jia332 +1 2009-12-21 18:51
Forum Jump: