简体   繁体   中英

Batch file doesn't close after START

I have a batch file having the following structure:

cd "C:\Users\abc\Desktop\data-integration\"
start /B "" Pan.bat /file:"C:\Users\abc\Desktop\abc.ktr" /level:Basic > D:\abc.log
start /B "" Pan.bat /file:"C:\Users\abc\Desktop\xyz.ktr" /level:Basic > D:\xyz.log
EXIT

Here, my 2 start commands execute successfully, but the window that opens on startup does not close by itself. I have tried EXIT /B 0 and other such options as well, but the console does not disappear. Any help would be appreciated. Thanks

I believe the problem is the /B switch on start . This does not start a silent process - I believe you'd need to search SO for a VBS approach to do that.

It may suit your purpose to change the /B switch to /min .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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