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!
Credits 5,226 Posts 1,737 Joined 2006-03-10 00:38 20-year member UID 51697 From 成都
Status Offline
Originally posted by weilong888 at 2006-10-11 09:33:
If
set a=123
set b=1234
And finally, how to make echo %b% display 0004?
How should this code be written?
Change set "b=!b:%a%=0!" to set "b=!b:%a%=000!" to achieve it.