Warning: fopen(/home/wwwroot/aix2/wp-content/uploads/wp-statistics/debug.log): failed to open stream: Permission denied in /home/wwwroot/aix2/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php on line 314

Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/wwwroot/aix2/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php on line 316

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/wwwroot/aix2/wp-content/plugins/wp-statistics/includes/class-wp-statistics.php on line 317
使用bat运行程序后,cmd窗口不会自动关闭的解决方案-雨木霜月

使用bat运行程序后,cmd窗口不会自动关闭的解决方案

在日常维护中,经常重复执行某个程序,我们就会借助Windows的定时任务+bat来处理

比如

taskkill /F /IM test.exe
cd D:\FumaCRM8 Server
d:
test.exe

但是这样每次执行后,cmd窗口不会自动关掉,影响美观,尝试过使用exit,但是不起效,所以我们借用start命令.

taskkill /F /IM test
cd D:\FumaCRM8 Server
d:
start test.exe

 

这样就OK了

欢迎访问本网站!
雨木霜月 » 使用bat运行程序后,cmd窗口不会自动关闭的解决方案

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据