Two CMD files, How to pick new line?

Microsoft Windows xp pro w/ sp3 multilin...
November 19, 2010 at 05:48:31
Specs: Windows XP
I have two .CMD files, let say FILE1 and FILE2.

FILE1 contains hundred lines to be executed by FILE2 (FILE2 is called from within FILE1). FILE2 picks up a line from FILE1 and executes given command.

script is supposed to work in such a way that next line from FILE1 gets executed when FILE2 runs.

Problem is just first line from FILE1 gets executed again and again by FILE2.

see below.....

FILE1

FILE2.cmd abc
FILE2.cmd def
FILE2.cmd ghi
FILE2.cmd jkl
FILE2.cmd mno
FILE2.cmd pqr


when run it should go like....

abc >> def >> ghi >> jkl and so on....


However it is running like.....

abc >> abc >> abc >> abc and so on....

any idea how do i make FILE2 to pick new line, from FILE1, to be executed????


See More: Two CMD files, How to pick new line?

Report •


#1
November 19, 2010 at 11:18:23
Never mind that .cmd files have nothing to do with DOS. What are you trying to do?


=====================================
Life is too important to be taken seriously.

M2


Report •

#2
November 19, 2010 at 11:42:32
Mechanix2Go: as i explained, i want FILE2 to pick up next line from FILE1. Currently FILE2 keeps executing just first line from FILE1.

Report •

#3
November 19, 2010 at 14:57:01
Is the parameters abc def ... being passed to the command properly.

Report •

Related Solutions

#4
November 19, 2010 at 22:42:38
Yes parameters are proper.

Its just FILE2 is not picking up new line from FILE1.


Report •

#5
November 21, 2010 at 03:24:11
That clears it right up.


=====================================
Life is too important to be taken seriously.

M2


Report •

Ask Question