dos batch problem. Help

来源: 2008-10-20 16:57:49 [旧帖] [给我悄悄话] 本文已被阅读:

2 batch file

file 1 --copy_file.bat
contents: copy %1 %2

file 2--test_dos.bat
contents: copy_file test1.txt test2.txt
dir test*.txt

but when I ran test_dos.bat in dos prompt, the batch file ran only the first line "copy_file test1.txt test2.txt", then return to dos prompt, and the last line "dir test*.txt" did not run at all.

Anyone knows why the batch file breaks at the middle? how can I make it continue running.

The above dos batch files were execuated in dos window in windows XP

Thanks