简体   繁体   English

调用另一个bat文件后,bat文件停止执行

[英]bat file stops executing after calling another bat file

I have a bat file which calls another bat file. 我有一个蝙蝠文件,它调用另一个蝙蝠文件。 All this works successfully. 所有这一切都成功进行。 The other bat file produces an xml file that I then want to move to another directory, but my bat file never gets that far, instead stopping at frmf2xml. 另一个bat文件会生成一个xml文件,然后我想将其移至另一个目录,但是我的bat文件再也不会那么远了,而是停在frmf2xml处。 I'm not very experienced in writing them so any help or guidance would be great 我写它们的经验不是很丰富,所以任何帮助或指导都将非常有用

echo.
echo.
echo [ RUNNING CONVERSION ]
echo.
echo before........................

frmf2xml USE_PROPERTY_IDS=NO OVERWRITE=YES %inputFMB%\%1

echo after.........................
move /-y "C:\resources\fmb\%1_fmb.xml" "C:\resources\xml\"

This is intended - or at least documented. 这是有意的-或至少已记录在案。

You must use call in order to proceed with the calling batch file: 您必须使用call才能继续进行调用批处理文件:

call frmf2xml USE_PROPERTY_IDS=NO OVERWRITE=YES %inputFMB%\%1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM