batch file - copy specific value from text1 to text2 by dos -
i need copy specific value text1
text2
dos batch.
text1 that;
20130701,xxxx,xxxx,xxx 20130702,yyyy,yyy,yyyyyyy
i want copy "20130701"
line text1
text2
, using dos command. help.
this create text2.txt lines text1.txt start 20130701
findstr "^20130701" <"text1.txt" >"text2.txt"
original answer below:
set text1=20130701,xxxx,xxxx,xxx set text2=20130702,yyyy,yyy,yyyyyyy set text3=%text1:~0,8%%text2:~8% echo %text3%
Comments
Post a Comment