batchfile taskkill /IM cmd.exe not closing cmd.exe

前端 未结 5 2027
小鲜肉
小鲜肉 2021-01-14 17:15

I have a batch file which moves a few files and starts a program and for some reason, after the batch file goes through all the commands in it, it doesn\'t close. The comman

5条回答
  •  醉梦人生
    2021-01-14 17:44

    I recommend using:

    :exit
    exit

    or calling another file which has:

    exit /b which will terminate cmd.exe instead of just the script if it were in the same file.

    i think "exit" will should work fine anyway.

提交回复
热议问题