🕷️ Crawler Inspector

URL Lookup

Direct Parameter Lookup

Raw Queries and Responses

1. Shard Calculation

Query:
Response:
Calculated Shard: 169 (from laksa068)

2. Crawled Status Check

Query:
Response:

3. Robots.txt Check

Query:
Response:

4. Spam/Ban Check

Query:
Response:

5. Seen Status Check

ℹ️ Skipped - page is already crawled

🚫
NOT INDEXABLE
CRAWLED
7 months ago
🤖
ROBOTS ALLOWED

Page Info Filters

FilterStatusConditionDetails
HTTP statusPASSdownload_http_code = 200HTTP 200
Age cutoffFAILdownload_stamp > now() - 6 MONTH7.4 months ago
History dropPASSisNull(history_drop_reason)No drop reason
Spam/banPASSfh_dont_index != 1 AND ml_spam_score = 0ml_spam_score=0
CanonicalPASSmeta_canonical IS NULL OR = '' OR = src_unparsedNot set

Page Details

PropertyValue
URLhttps://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program
Last Crawled2025-09-02 05:13:55 (7 months ago)
First Indexednot set
HTTP Status Code200
Meta TitleBatch file to kill and restart not responding program - Stack Overflow
Meta Descriptionnull
Meta Canonicalnull
Boilerpipe Text
You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation and how do I get it? Instead, you can save this post to reference later.
Markdown
# ![site logo](https://stackoverflow.com/Content/Img/SE-logo75.png) **Join Stack Overflow** By clicking “Sign up”, you agree to our [terms of service](https://stackoverflow.com/legal/terms-of-service/public) and acknowledge you have read our [privacy policy](https://stackoverflow.com/legal/privacy-policy). # OR Already have an account? [Log in](https://stackoverflow.com/users/login) [Skip to main content](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#content) [Stack Overflow](https://stackoverflow.com/) 1. [About](https://stackoverflow.co/) 2. Products 3. [For Teams](https://stackoverflow.co/teams/) 1. [Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) 2. [Advertising Reach devs & technologists worldwide about your product, service or employer brand](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) 3. [Knowledge Solutions Data licensing offering for businesses to build and improve AI tools and models](https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) 4. [Labs The future of collective knowledge sharing](https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) 5. [About the company](https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) [Visit the blog](https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) 1. ### [current community](https://stackoverflow.com/) - [Stack Overflow](https://stackoverflow.com/) [help](https://stackoverflow.com/help) [chat](https://chat.stackoverflow.com/?tab=explore) - [Meta Stack Overflow](https://meta.stackoverflow.com/) ### your communities [Sign up](https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F21386763%2Fbatch-file-to-kill-and-restart-not-responding-program) or [log in](https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F21386763%2Fbatch-file-to-kill-and-restart-not-responding-program) to customize your list. ### [more stack exchange communities](https://stackexchange.com/sites) [company blog](https://stackoverflow.blog/) 2. [Log in](https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F21386763%2Fbatch-file-to-kill-and-restart-not-responding-program) 3. [Sign up](https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F21386763%2Fbatch-file-to-kill-and-restart-not-responding-program) # Let's set up your homepage Select a few topics you're interested in: python javascript c\# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: - javascript - python - java - c\# - php - android - html - jquery - c++ - css - ios - sql - mysql - r - reactjs - node.js - arrays - c - asp.net - json - python-3.x - .net - ruby-on-rails - sql-server - swift - django - angular - objective-c - excel - pandas - angularjs - regex - typescript - ruby - linux - ajax - iphone - vba - xml - laravel - spring - asp.net-mvc - database - wordpress - string - flutter - postgresql - mongodb - wpf - windows - amazon-web-services - xcode - bash - git - oracle-database - spring-boot - dataframe - azure - firebase - list - multithreading - docker - vb.net - react-native - eclipse - algorithm - powershell - macos - visual-studio - numpy - image - forms - scala - function - vue.js - performance - twitter-bootstrap - selenium - winforms - kotlin - loops - express - dart - hibernate - sqlite - matlab - python-2.7 - shell - rest - apache - entity-framework - android-studio - csv - maven - linq - qt - dictionary - unit-testing - asp.net-core - facebook - apache-spark - tensorflow - file - swing - class - unity-game-engine - sorting - date - authentication - go - symfony - t-sql - opencv - matplotlib - .htaccess - google-chrome - for-loop - datetime - codeigniter - perl - http - validation - sockets - google-maps - object - uitableview - xaml - oop - visual-studio-code - if-statement - cordova - ubuntu - web-services - email - android-layout - github - spring-mvc - elasticsearch - kubernetes - selenium-webdriver - ms-access - ggplot2 - user-interface - parsing - pointers - google-sheets - c++11 - security - machine-learning - google-apps-script - ruby-on-rails-3 - templates - flask - nginx - variables - exception - sql-server-2008 - gradle - debugging - tkinter - listview - delphi - jpa - asynchronous - web-scraping - haskell - pdf - jsp - ssl - amazon-s3 - google-cloud-platform - jenkins - xamarin - testing - wcf - batch-file - generics - npm - ionic-framework - network-programming - unix - recursion - google-app-engine - mongoose - visual-studio-2010 - .net-core - android-fragments - assembly - animation - math - svg - session - intellij-idea - hadoop - rust - next.js - curl - join - winapi - django-models - laravel-5 - url - heroku - http-redirect - tomcat - google-cloud-firestore - inheritance - webpack - image-processing - gcc - keras - asp.net-mvc-4 - swiftui - logging - dom - matrix - pyspark - actionscript-3 - button - post - optimization - firebase-realtime-database - web - jquery-ui - cocoa - xpath - iis - d3.js - javafx - firefox - xslt - internet-explorer - caching - select - asp.net-mvc-3 - opengl - events - asp.net-web-api - plot - dplyr - encryption - magento - search - stored-procedures - amazon-ec2 - ruby-on-rails-4 - memory - canvas - audio - multidimensional-array - jsf - random - vector - redux - cookies - input - facebook-graph-api - flash - indexing - xamarin.forms - arraylist - ipad - cocoa-touch - data-structures - video - model-view-controller - azure-devops - apache-kafka - serialization - jdbc - woocommerce - razor - routes - awk - servlets - mod-rewrite - excel-formula - beautifulsoup - filter - docker-compose - iframe - aws-lambda - design-patterns - text - django-rest-framework - visual-c++ - cakephp - mobile - android-intent - struct - react-hooks - methods - groovy - mvvm - ssh - lambda - checkbox - time - ecmascript-6 - google-chrome-extension - grails - installation - sharepoint - cmake - shiny - spring-security - jakarta-ee - plsql - android-recyclerview - core-data - types - meteor - sed - android-activity - activerecord - bootstrap-4 - websocket - graph - replace - scikit-learn - group-by - vim - file-upload - junit - boost - sass - memory-management - import - deep-learning - async-await - error-handling - eloquent - dynamic - soap - dependency-injection - silverlight - layout - apache-spark-sql - charts - deployment - browser - gridview - svn - while-loop - google-bigquery - vuejs2 - dll - highcharts - ffmpeg - view - foreach - makefile - plugins - redis - c\#-4.0 - reporting-services - jupyter-notebook - merge - unicode - reflection - https - server - google-maps-api-3 - twitter - oauth-2.0 - extjs - terminal - axios - pip - split - cmd - pytorch - encoding - django-views - collections - database-design - hash - netbeans - automation - data-binding - ember.js - build - tcp - pdo - sqlalchemy - mysqli - apache-flex - entity-framework-core - concurrency - command-line - spring-data-jpa - printing - react-redux - java-8 - lua - html-table - ansible - jestjs - neo4j - service - parameters - material-ui - enums - flexbox - module - promise - visual-studio-2012 - outlook - firebase-authentication - webview - web-applications - uwp - jquery-mobile - utf-8 - datatable - python-requests - parallel-processing - colors - drop-down-menu - scipy - scroll - tfs - hive - count - syntax - ms-word - twitter-bootstrap-3 - ssis - fonts - rxjs - constructor - google-analytics - file-io - three.js - paypal - powerbi - graphql - cassandra - discord - graphics - compiler-errors - gwt - socket.io - react-router - solr - backbone.js - url-rewriting - memory-leaks - datatables - nlp - terraform - oauth - datagridview - drupal - oracle11g - zend-framework - knockout.js - triggers - neural-network - interface - django-forms - angular-material - casting - jmeter - google-api - linked-list - path - timer - proxy - django-templates - arduino - orm - directory - windows-phone-7 - parse-platform - visual-studio-2015 - cron - conditional-statements - push-notification - functional-programming - primefaces - pagination - model - jar - xamarin.android - hyperlink - uiview - visual-studio-2013 - vbscript - google-cloud-functions - gitlab - azure-active-directory - jwt - download - swift3 - sql-server-2005 - configuration - process - rspec - pygame - properties - combobox - callback - windows-phone-8 - linux-kernel - safari - scrapy - permissions - emacs - scripting - raspberry-pi - clojure - x86 - scope - io - azure-functions - expo - compilation - responsive-design - mongodb-query - nhibernate - angularjs-directive - request - bluetooth - reference - binding - dns - 3d - architecture - playframework - pyqt - version-control - discord.js - doctrine-orm - package - get - f\# - rubygems - sql-server-2012 - autocomplete - openssl - tree - datepicker - kendo-ui - jackson - controller - yii - grep - nested - xamarin.ios - static - statistics - null - transactions - dockerfile - datagrid - active-directory - uiviewcontroller - webforms - discord.py - phpmyadmin - sas - computer-vision - notifications - duplicates - mocking - youtube - pycharm - yaml - nullpointerexception - menu - blazor - sum - plotly - bitmap - asp.net-mvc-5 - visual-studio-2008 - electron - yii2 - floating-point - css-selectors - stl - jsf-2 - android-listview - time-series - cryptography - ant - hashmap - character-encoding - stream - msbuild - asp.net-core-mvc - sdk - google-drive-api - selenium-chromedriver - jboss - joomla - cors - devise - navigation - anaconda - cuda - background - frontend - multiprocessing - binary - camera - pyqt5 - iterator - linq-to-sql - mariadb - onclick - ios7 - android-jetpack-compose - microsoft-graph-api - rabbitmq - android-asynctask - tabs - laravel-4 - amazon-dynamodb - environment-variables - insert - uicollectionview - linker - xsd - console - coldfusion - continuous-integration - upload - ftp - textview - opengl-es - macros - operating-system - mockito - localization - formatting - vuejs3 - xml-parsing - json.net - type-conversion - data.table - kivy - timestamp - integer - calendar - segmentation-fault - android-ndk - prolog - drag-and-drop - char - crash - jasmine - dependencies - automated-tests - geometry - azure-pipelines - android-gradle-plugin - itext - fortran - sprite-kit - header - mfc - firebase-cloud-messaging - attributes - nuxt.js - format - nosql - odoo - db2 - jquery-plugins - event-handling - jenkins-pipeline - nestjs - leaflet - julia - annotations - flutter-layout - keyboard - postman - textbox - arm - visual-studio-2017 - gulp - stripe-payments - libgdx - synchronization - timezone - uikit - azure-web-app-service - xampp - dom-events - wso2 - crystal-reports - swagger - android-emulator - namespaces - aggregation-framework - uiscrollview - jvm - sequelize.js - google-sheets-formula - com - chart.js - snowflake-cloud-data-platform - subprocess - geolocation - webdriver - centos - html5-canvas - garbage-collection - dialog - widget - sql-update - numbers - concatenation - qml - set - tuples - java-stream - smtp - mapreduce - ionic2 - windows-10 - rotation - android-edittext - modal-dialog - spring-data - nuget - doctrine - radio-button - http-headers - grid - sonarqube - lucene - xmlhttprequest - listbox - switch-statement - initialization - internationalization - components - apache-camel - boolean - google-play - serial-port - gdb - ios5 - ldap - youtube-api - return - eclipse-plugin - pivot - latex - frameworks - tags - containers - github-actions - c++17 - subquery - dataset - asp-classic - foreign-keys - label - embedded - uinavigationcontroller - copy - delegates - google-cloud-storage - struts2 - migration - protractor - base64 - queue - find - uibutton - sql-server-2008-r2 - arguments - composer-php - append - jaxb - stack - zip - tailwind-css - cucumber - autolayout - ide - entity-framework-6 - iteration - popup - r-markdown - windows-7 - airflow - vb6 - ssl-certificate - g++ - hover - gmail - jqgrid - clang - range Next You’ll be prompted to create an account to view your personalized homepage. 1. 1. [Home](https://stackoverflow.com/) 2. [Questions](https://stackoverflow.com/questions) 3. [AI Assist Labs](https://stackoverflow.ai/) 4. [Tags](https://stackoverflow.com/tags) 5. [Challenges](https://stackoverflow.com/beta/challenges) 6. [Chat](https://chat.stackoverflow.com/rooms/259507/stack-overflow-lobby) 7. [Articles](https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles) 8. [Users](https://stackoverflow.com/users) 9. [Companies](https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) 10. [Collectives]() 11. Communities for your favorite technologies. [Explore all Collectives](https://stackoverflow.com/collectives-all) 2. Teams ![](https://cdn.sstatic.net/Img/teams/teams-promo.svg?v=e507948b81bf) Ask questions, find answers and collaborate at work with Stack Overflow for Teams. [Try Teams for free](https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) [Explore Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) 3. [Teams]() 4. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. [Explore Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) ##### Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. [Learn more about Collectives](https://stackoverflow.com/collectives) **Teams** Q\&A for work Connect and share knowledge within a single location that is structured and easy to search. [Learn more about Teams](https://stackoverflow.co/teams/) # ![Illustration of upvote icon after it is clicked](https://cdn.sstatic.net/Img/modal/img-upvote.png?v=fce73bd9724d) # Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. **Upvoting** indicates when questions and answers are useful. [What's reputation and how do I get it?](https://stackoverflow.com/help/whats-reputation) Instead, you can save this post to reference later. Save this post for later Not now # ![Illustration of upvote icon after it is clicked](https://cdn.sstatic.net/Img/modal/img-free-votes.png?v=1c5aa3dac50b) # Thanks for your vote! You now have 5 free votes weekly. Free votes - count toward the total vote score - does not give reputation to the author Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges, [earn reputation](https://stackoverflow.com/help/whats-reputation). Got it\! Go to help center to learn more # [Batch file to kill and restart not responding program](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program) [Ask Question](https://stackoverflow.com/questions/ask) Asked 11 years, 7 months ago Modified [5 years, 9 months ago](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program?lastactivity "2019-11-09 14:04:53Z") Viewed 14k times This question shows research effort; it is useful and clear 5 Save this question. Show activity on this post. I am running a program (Win7) which sometimes gets stuck and not responding. Just wanted your help to write batch process that can check the program status and if it's Not responding then close and open it again - [file](https://stackoverflow.com/questions/tagged/file "show questions tagged 'file'") - [batch-file](https://stackoverflow.com/questions/tagged/batch-file "show questions tagged 'batch-file'") - [kill](https://stackoverflow.com/questions/tagged/kill "show questions tagged 'kill'") [Share](https://stackoverflow.com/q/21386763 "Short permalink to this question") Share a link to this question Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this question](https://stackoverflow.com/posts/21386763/edit) Follow Follow this question to receive notifications [edited Jan 27, 2014 at 17:14](https://stackoverflow.com/posts/21386763/revisions "show all edits to this post") [![rene's user avatar](https://i.sstatic.net/qj33e.png?s=64)](https://stackoverflow.com/users/578411/rene) [rene](https://stackoverflow.com/users/578411/rene) 42\.6k7878 gold badges122122 silver badges166166 bronze badges asked Jan 27, 2014 at 16:55 [![user3241320's user avatar](https://www.gravatar.com/avatar/eff133b2d9de7648205d17ac6ce67a22?s=64&d=identicon&r=PG&f=y&so-version=2)](https://stackoverflow.com/users/3241320/user3241320) [user3241320](https://stackoverflow.com/users/3241320/user3241320)user3241320 4911 gold badge11 silver badge55 bronze badges 3 - check it if it helps: [stackoverflow.com/questions/18070478/…](http://stackoverflow.com/questions/18070478/batch-file-checks-if-program-is-responding "batch file checks if program is responding") donstack – [donstack](https://stackoverflow.com/users/1750877/donstack "2,725 reputation") 01/27/2014 17:27:27 [Commented Jan 27, 2014 at 17:27](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32256994_21386763) - Thank - But i'm not sure how to write the code right `@echo off taskkill /im "Be2Beat.exe" /fi "STATUS eq NOT RESPONDING" "C:\Program Files (x86)\Be2Beat\Be2Beat Multimedia Platform\Be2Beat.exe" exit ) || ( exit )` user3241320 – [user3241320](https://stackoverflow.com/users/3241320/user3241320 "49 reputation") 01/27/2014 18:36:33 [Commented Jan 27, 2014 at 18:36](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32259432_21386763) - I want the batch to check if program not responding to close it and launch again and if its working good just exit without running it again. Thanks user3241320 – [user3241320](https://stackoverflow.com/users/3241320/user3241320 "49 reputation") 01/27/2014 18:40:45 [Commented Jan 27, 2014 at 18:40](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32259582_21386763) [Add a comment](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program "Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.") \| ## 2 Answers 2 Sorted by: [Reset to default](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program?answertab=scoredesc#tab-top) This answer is useful 5 Save this answer. Show activity on this post. Test this: it should only relaunch be2beat when the task is not responding, and has been killed forcefully. ``` @echo off taskkill /im "Be2Beat.exe" /fi "STATUS eq NOT RESPONDING" /f >nul && start "" "C:\Program Files (x86)\Be2Beat\Be2Beat Multimedia Platform\Be2Beat.exe" ``` [Share](https://stackoverflow.com/a/21392504 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/ "The current license for this post: CC BY-SA 3.0") [Improve this answer](https://stackoverflow.com/posts/21392504/edit) Follow Follow this answer to receive notifications [edited Jan 27, 2014 at 22:23](https://stackoverflow.com/posts/21392504/revisions "show all edits to this post") answered Jan 27, 2014 at 21:53 [![foxidrive's user avatar](https://www.gravatar.com/avatar/5f0bba828c55c7cd9f94909d6d1d7907?s=64&d=identicon&r=PG)](https://stackoverflow.com/users/2299431/foxidrive) [foxidrive](https://stackoverflow.com/users/2299431/foxidrive)foxidrive 41\.4k1111 gold badges6161 silver badges7171 bronze badges 5 - Thanks!!! - One last question - How can i make it close the Cmd window after batch file execute? user3241320 – [user3241320](https://stackoverflow.com/users/3241320/user3241320 "49 reputation") 01/27/2014 22:20:48 [Commented Jan 27, 2014 at 22:20](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32267261_21392504) - Try it using the start command as I've shown above. The cmd prompt window should close by itself. foxidrive – [foxidrive](https://stackoverflow.com/users/2299431/foxidrive "41,377 reputation") 01/27/2014 22:23:49 [Commented Jan 27, 2014 at 22:23](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32267328_21392504) - Thank you. The only thing is that the window closes if it actually opens the program `start "" "C:\Program Files (x86)\Be2Beat\Be2Beat Multimedia Platform\Be2Beat.exe"` but if the program already running the windows doesn't close. Sorry about me driving you crazy :) appreciate your help. Thanks user3241320 – [user3241320](https://stackoverflow.com/users/3241320/user3241320 "49 reputation") 01/27/2014 22:54:10 [Commented Jan 27, 2014 at 22:54](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32268264_21392504) - Do you click on the batch file? It should close by itself, but try putting an `exit` command as the last line. If you called the batch file `taskkill` then call it something else. foxidrive – [foxidrive](https://stackoverflow.com/users/2299431/foxidrive "41,377 reputation") 01/27/2014 23:21:04 [Commented Jan 27, 2014 at 23:21](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32268943_21392504) - Thanks! One more thing... How can i add this action `C:\Check\Curl` if only if program not responding and the app killed it and opened it again? I will just send me email regarding this action. Thanks a lot - appreciate your help user3241320 – [user3241320](https://stackoverflow.com/users/3241320/user3241320 "49 reputation") 01/28/2014 17:45:28 [Commented Jan 28, 2014 at 17:45](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program#comment32301899_21392504) [Add a comment](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| This answer is useful 0 Save this answer. Show activity on this post. This will run it on a continuous loop to monitor. Create file 2.bat ``` @echo off :loop taskkill /im "Be2Beat.exe" /fi "STATUS eq NOT RESPONDING" /f >nul && start "" "C:\Program Files (x86)\Be2Beat\Be2Beat Multimedia Platform\Be2Beat.exe" goto loop ``` [Share](https://stackoverflow.com/a/25192593 "Short permalink to this answer") Share a link to this answer Copy link [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/ "The current license for this post: CC BY-SA 4.0") [Improve this answer](https://stackoverflow.com/posts/25192593/edit) Follow Follow this answer to receive notifications [edited Nov 9, 2019 at 14:04](https://stackoverflow.com/posts/25192593/revisions "show all edits to this post") user9556248 answered Aug 7, 2014 at 21:31 [![Yair Yaya Tendler's user avatar](https://graph.facebook.com/699059893/picture?type=large)](https://stackoverflow.com/users/3856904/yair-yaya-tendler) [Yair Yaya Tendler](https://stackoverflow.com/users/3856904/yair-yaya-tendler)Yair Yaya Tendler 15911 silver badge55 bronze badges [Add a comment](https://stackoverflow.com/questions/21386763/batch-file-to-kill-and-restart-not-responding-program "Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.") \| Start asking to get answers Find the answer to your question by asking. [Ask question](https://stackoverflow.com/questions/ask) Explore related questions - [file](https://stackoverflow.com/questions/tagged/file "show questions tagged 'file'") - [batch-file](https://stackoverflow.com/questions/tagged/batch-file "show questions tagged 'batch-file'") - [kill](https://stackoverflow.com/questions/tagged/kill "show questions tagged 'kill'") See similar questions with these tags. - The Overflow Blog - [Open-source is for the people, by the people](https://stackoverflow.blog/2025/08/29/open-source-is-for-the-people-by-the-people/?cb=1) - [Moving the public Stack Overflow sites to the cloud: Part 1](https://stackoverflow.blog/2025/08/28/moving-the-public-stack-overflow-sites-to-the-cloud-part-1/?cb=1) - Featured on Meta - [New comment UI experiment graduation](https://meta.stackoverflow.com/questions/434861/new-comment-ui-experiment-graduation?cb=1) - [Policy: Generative AI (e.g., ChatGPT) is banned](https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) [Visit chat](https://chat.stackoverflow.com/) #### Linked [2](https://stackoverflow.com/questions/18070478/batch-file-checks-if-program-is-responding?lq=1 "Question score (upvotes - downvotes)") [Batch file checks if program is responding](https://stackoverflow.com/questions/18070478/batch-file-checks-if-program-is-responding?noredirect=1&lq=1) [1](https://stackoverflow.com/questions/62877323/batch-how-do-i-store-the-status-of-a-program-in-a-variable?lq=1 "Question score (upvotes - downvotes)") [Batch - how do I store the status of a program in a variable?](https://stackoverflow.com/questions/62877323/batch-how-do-i-store-the-status-of-a-program-in-a-variable?noredirect=1&lq=1) #### Related [1](https://stackoverflow.com/questions/5286503/issue-running-a-batch-script-to-kill-a-process?rq=3 "Question score (upvotes - downvotes)") [issue running a batch script to kill a process](https://stackoverflow.com/questions/5286503/issue-running-a-batch-script-to-kill-a-process?rq=3) [3](https://stackoverflow.com/questions/17753562/batchfile-taskkill-im-cmd-exe-not-closing-cmd-exe?rq=3 "Question score (upvotes - downvotes)") [batchfile taskkill /IM cmd.exe not closing cmd.exe](https://stackoverflow.com/questions/17753562/batchfile-taskkill-im-cmd-exe-not-closing-cmd-exe?rq=3) [3](https://stackoverflow.com/questions/19652031/using-taskkill-in-command-prompt-batch?rq=3 "Question score (upvotes - downvotes)") [Using Taskkill in command prompt (Batch)](https://stackoverflow.com/questions/19652031/using-taskkill-in-command-prompt-batch?rq=3) [0](https://stackoverflow.com/questions/22596642/i-want-to-run-and-kill-a-process-with-same-batch-file?rq=3 "Question score (upvotes - downvotes)") [I want to run and kill a process with same batch file](https://stackoverflow.com/questions/22596642/i-want-to-run-and-kill-a-process-with-same-batch-file?rq=3) [2](https://stackoverflow.com/questions/30540934/in-batch-how-do-i-use-taskkill-properly?rq=3 "Question score (upvotes - downvotes)") [in batch how do i use taskkill properly](https://stackoverflow.com/questions/30540934/in-batch-how-do-i-use-taskkill-properly?rq=3) [1](https://stackoverflow.com/questions/33898090/running-killing-executable-using-bat-file?rq=3 "Question score (upvotes - downvotes)") [Running / killing executable using .bat file](https://stackoverflow.com/questions/33898090/running-killing-executable-using-bat-file?rq=3) [3](https://stackoverflow.com/questions/36231885/c-sharp-unable-to-kill-process?rq=3 "Question score (upvotes - downvotes)") [c\# unable to kill process](https://stackoverflow.com/questions/36231885/c-sharp-unable-to-kill-process?rq=3) [0](https://stackoverflow.com/questions/37910412/batch-command-doesnt-stop?rq=3 "Question score (upvotes - downvotes)") [Batch command doesn't stop](https://stackoverflow.com/questions/37910412/batch-command-doesnt-stop?rq=3) [1](https://stackoverflow.com/questions/46725501/batch-script-kill-process?rq=3 "Question score (upvotes - downvotes)") [Batch script kill process](https://stackoverflow.com/questions/46725501/batch-script-kill-process?rq=3) [0](https://stackoverflow.com/questions/47650905/batch-file-wont-kill-process-and-close-console-window?rq=3 "Question score (upvotes - downvotes)") [Batch file won't kill process and close console window](https://stackoverflow.com/questions/47650905/batch-file-wont-kill-process-and-close-console-window?rq=3) #### [Hot Network Questions](https://stackexchange.com/questions?tab=hot) - [Is every person in Germany required by law to have their identity document (if they have been issued one) with them at all times?](https://law.stackexchange.com/questions/110772/is-every-person-in-germany-required-by-law-to-have-their-identity-document-if-t) - [What can a restaurant owner do if a customer says that he will pay later?](https://law.stackexchange.com/questions/110758/what-can-a-restaurant-owner-do-if-a-customer-says-that-he-will-pay-later) - [Does Innate Sorcery grant Advantage to True Strike?](https://rpg.stackexchange.com/questions/216450/does-innate-sorcery-grant-advantage-to-true-strike) - [What was the first game where your guide/quest giver turned out to be a key antagonist/villain?](https://gaming.stackexchange.com/questions/413290/what-was-the-first-game-where-your-guide-quest-giver-turned-out-to-be-a-key-anta) - [Joomla 5.x - onAjax don't fire with new plugin folders structure](https://joomla.stackexchange.com/questions/34240/joomla-5-x-onajax-dont-fire-with-new-plugin-folders-structure) - [Could the UN General Assembly meet in Vienna, Geneva, or Nairobi?](https://politics.stackexchange.com/questions/93455/could-the-un-general-assembly-meet-in-vienna-geneva-or-nairobi) - [If the sum of each row and column of an orthogonal matrix equals 1, is it a permutation matrix?](https://math.stackexchange.com/questions/5093533/if-the-sum-of-each-row-and-column-of-an-orthogonal-matrix-equals-1-is-it-a-perm) - [Guitar + Piano accompaning voices](https://music.stackexchange.com/questions/141333/guitar-piano-accompaning-voices) - [Pause all media players in Linux via script](https://askubuntu.com/questions/1555325/pause-all-media-players-in-linux-via-script) - [What does "lot grayer" mean?](https://ell.stackexchange.com/questions/368099/what-does-lot-grayer-mean) - [Does the water content inside food regulate the cooking process?](https://cooking.stackexchange.com/questions/133033/does-the-water-content-inside-food-regulate-the-cooking-process) - [Numbering QGIS fishnet from lower left, moving right](https://gis.stackexchange.com/questions/495166/numbering-qgis-fishnet-from-lower-left-moving-right) - [What are the potential effects on the engine if water is added to gasoline or petrol?](https://mechanics.stackexchange.com/questions/99425/what-are-the-potential-effects-on-the-engine-if-water-is-added-to-gasoline-or-pe) - [Keep two entire Linux desktop systems in sync](https://unix.stackexchange.com/questions/799364/keep-two-entire-linux-desktop-systems-in-sync) - [Can a SATA hard drive be hot swapped?](https://superuser.com/questions/1922641/can-a-sata-hard-drive-be-hot-swapped) - [What are the negations of the following sentences in natural language?](https://philosophy.stackexchange.com/questions/130101/what-are-the-negations-of-the-following-sentences-in-natural-language) - [Cutoffs in plots in Ellingham diagrams](https://chemistry.stackexchange.com/questions/190752/cutoffs-in-plots-in-ellingham-diagrams) - [What's the difference between 好きな人だった vs 好きだった人?](https://japanese.stackexchange.com/questions/108136/whats-the-difference-between-%E5%A5%BD%E3%81%8D%E3%81%AA%E4%BA%BA%E3%81%A0%E3%81%A3%E3%81%9F-vs-%E5%A5%BD%E3%81%8D%E3%81%A0%E3%81%A3%E3%81%9F%E4%BA%BA) - [Inherent centrifuge flexibility; can one swing-out-bucket rotor handle 5 and 50 ml tubes? Or are two rotors, or two centrifuges necessary? (2000×g)](https://biology.stackexchange.com/questions/117860/inherent-centrifuge-flexibility-can-one-swing-out-bucket-rotor-handle-5-and-50) - [Disposer/dishwasher high loop on new sink without air gap?](https://diy.stackexchange.com/questions/322818/disposer-dishwasher-high-loop-on-new-sink-without-air-gap) - [Co-Lead Role Undermined, Manager Dismissive](https://workplace.stackexchange.com/questions/202500/co-lead-role-undermined-manager-dismissive) - [Introductory book on statistical inference that connects theory to data analysis](https://stats.stackexchange.com/questions/669907/introductory-book-on-statistical-inference-that-connects-theory-to-data-analysis) - [What is the significance of the works of Christ?](https://hermeneutics.stackexchange.com/questions/108008/what-is-the-significance-of-the-works-of-christ) - [Where do these two views of Starship's Flight 10 landing come from?](https://space.stackexchange.com/questions/69824/where-do-these-two-views-of-starships-flight-10-landing-come-from) [Question feed](https://stackoverflow.com/feeds/question/21386763 "Feed of this question and its answers") # Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. ![](https://stackoverflow.com/posts/21386763/ivc/e83c?prg=3f934d12-1b25-43e2-a74b-12492ca28d75) # Why are you flagging this comment? Probable spam. This comment promotes a product, service or website while [failing to disclose the author's affiliation](https://stackoverflow.com/help/promotion). Unfriendly or contains harassment/bigotry/abuse. This comment is unkind, insulting or attacks another person or group. Learn more in our [Code of Conduct](https://stackoverflow.com/conduct/abusive-behavior). Not needed. This comment is not relevant to the post. ``` ``` Enter at least 6 characters Something else. A problem not listed above. Try to be as specific as possible. ``` ``` Enter at least 6 characters Flag comment Cancel You have 0 flags left today ##### [Stack Overflow](https://stackoverflow.com/) - [Questions](https://stackoverflow.com/questions) - [Help](https://stackoverflow.com/help) - [Chat](https://chat.stackoverflow.com/?tab=explore) ##### [Products](https://stackoverflow.co/) - [Teams](https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) - [Advertising](https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) - [Talent](https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) ##### [Company](https://stackoverflow.co/) - [About](https://stackoverflow.co/) - [Press](https://stackoverflow.co/company/press/) - [Work Here](https://stackoverflow.co/company/work-here/) - [Legal](https://stackoverflow.com/legal) - [Privacy Policy](https://stackoverflow.com/legal/privacy-policy) - [Terms of Service](https://stackoverflow.com/legal/terms-of-service/public) - [Contact Us](https://stackoverflow.com/contact) - Cookie Settings - [Cookie Policy](https://policies.stackoverflow.co/stack-overflow/cookie-policy) ##### [Stack Exchange Network](https://stackexchange.com/) - [Technology](https://stackexchange.com/sites#technology) - [Culture & recreation](https://stackexchange.com/sites#culturerecreation) - [Life & arts](https://stackexchange.com/sites#lifearts) - [Science](https://stackexchange.com/sites#science) - [Professional](https://stackexchange.com/sites#professional) - [Business](https://stackexchange.com/sites#business) - [API](https://api.stackexchange.com/) - [Data](https://data.stackexchange.com/) - [Blog](https://stackoverflow.blog/?blb=1) - [Facebook](https://www.facebook.com/officialstackoverflow/) - [Twitter](https://twitter.com/stackoverflow) - [LinkedIn](https://linkedin.com/company/stack-overflow) - [Instagram](https://www.instagram.com/thestackoverflow) Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under [CC BY-SA](https://stackoverflow.com/help/licensing) . rev 2025.8.29.33370
Readable Markdownnull
Shard169 (laksa)
Root Hash714406497480128969
Unparsed URLcom,stackoverflow!/questions/21386763/batch-file-to-kill-and-restart-not-responding-program s443