0

I used google but it seems it didin't returned me any relevant links. Same goes for the reommendations here, so I think I have to ask this as a new question.

Can I run an exe command, but with a timeout included? Example:

Run the exe, if it does not end alone within 5 minutes, kill it. The 5 minutes limit is an example, I might want to set it up to 48 hours or something. Is there a way to do it?

George Eco
  • 466
  • 3
  • 16
  • Yes, there is a way to do it. Please add the code you are trying to make work into the question. Until then, enjoy reading about how SO works. https://stackoverflow.com/help/on-topic – lit Aug 06 '18 at 12:51
  • 2
    Maybe [this](https://stackoverflow.com/q/20813241/2861476) could help – MC ND Aug 06 '18 at 13:20
  • MC ND thank you very much. Please turn this to an answer so I can accept it. As for adding code, what should I had added ? Ok here: C:\somefolder\a.exe param1 param2 param3 I want a command like this to time out after 5 minutes. I was actually looking for an approach like MC ND's suggestion. – George Eco Aug 06 '18 at 21:41

0 Answers0