批处理文件未完全执行 [英] Batch File Not Executing completely

查看:92
本文介绍了批处理文件未完全执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个简单的批处理文件来备份我的存储库更改并重建,但是在运行backup命令后它总是停止执行.这里有没有人见过这种情况?

I have made a simple batch file for backing up my repository changes and rebuildig, but it always stops executing after the backup command is run. Have anyone here ever seen this happen before?

推荐答案

特别是,如果您从批处理中运行另一个批处理文件,则必须使用CALL,否则批处理将在此时停止执行. (控制权已转移到第二个批处理文件,并且永远不会返回.)

Specifically, if you run another batch file from your batch, you must use CALL, or your batch will stop executing at that point. (Control is transferred to the second batch file, and never returns.)

可以正常运行exe等-它们会自动返回.

Running exe's and the like is ok - they return automatically.

这篇关于批处理文件未完全执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆