troubleshooting Question

Dos echo command issue

Avatar of HalCHub
HalCHubFlag for United States of America asked on
Microsoft DOSWindows 7
3 Comments1 Solution301 ViewsLast Modified:
windows 7 pro machine

Given t.bat  

for /l %%x in (2, 1, 15) do (echo."StationNumber=%%x" 1> edge2%%x%.txt
)
for /l %%y in (2, 1, 3) do (

echo.copy a.txt +edge2%%y%.txt +b.txt edgex%%y%.txt >>x.txt

)
when I execute t.bat from a command prompt I get in x.txt

copy a.txt +edge22.txt
copy a.txt +edge23.txt


why am I not getting
copy a.txt+edge22.txt+b.txt edgex22.txt  
copy a.txt+edge23.txt+b.txt edgex23.txt

Thanks

Please don't give me vbs or other programming languages.. I want to know why this is not working in a bat file.
ASKER CERTIFIED SOLUTION
Qlemo
"Batchelor", Developer and EE Topic Advisor
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros