Batch to work on certain day

I'd like to write a batch the öfnet me a particular program on a particular day.

Please write the code purely right here thanks

I just'd still want to write a batch that checks whether this program has been closed or not and when it was closed restarts this

The first Do I order my brother to überaschen s.Pc Birthday and the second I need because my cloud program closes occasionally there dammit remains open.

Thanks for your help

LG Porico

The best answer

To run a program at a certain time, you can use the Windows Task Scheduler.

A batch script that checks regelmäßg if a process is running, and this possibly restarts might look like:

  @echo off: loop tasklist / FI "IMAGE NAME eq Steam.exe" 2> NUL |  find / I / N "Steam.exe"> NUL if "% ERRORLEVEL%" NEQ "0" (cd "C: \ Program Files (x86) \ Steam" && start Steam.exe) timeout 20 / NOBREAK goto loop exit

In my example, every 20 seconds will determine whether Steam.exe still running.

Date: 2019-02-05 Views: 5

Related articles

  • Can we write 4 work in a day? 2013-10-29

    I was ill all week and saw 3 work (German / English / French) missed I need nachschreiben next week. Unfortunately, I have all three nachschreiben in a day, this is still what we write just this day even a Powi work. Mir is now the question to be all

  • Write two work in a day? 2013-12-05

    Hello, I'm going currently in the 9th grade and have a question regarding Nachschreibearbeiten. I was sick last week at the history of work and it must nachschreiben this Monday. Problem is that since I also write physics. Actually, you can not write

  • What are the working hours and days at Fielmann? 2012-04-20

    I'll probably start training to become an optician at Fielmann, but am not so sure how the working hours and days were, as I briefly had an internship. And to call the future boss because something would me somehow embarrassing. --answer-- Watch you

  • 2 work in one day 6th grade 2013-05-17

    Hey, I write music soon and probably math on the same day. I go to the 6th year of high school in Baden-Wüttenberg. Is this allowed ? --answer-- As it stands with you in the state I can not say exactly, but is in the Hessian Schools Act there that on

  • get stung tattoo work the next day 2013-09-19

    Hi I have an issue and although I sting tonight at 17 o'clock my first tattoo on the rib. Since I wanted to ask, I can work the next day normal without pain and because of the care ?? I work as a utility in a nursing home. Thank you for answering lov

  • Drinking and work the next day? 2014-04-21

    Hey ho, my best friend is on Friday 18 and I must of course be there, but the problem is that I have to work the next day only at 15 o'clock .. The party will also go very long, I'd go home earlier but driving that's not because I do not have a car (

  • 6 day week - you work on 6 days? 2014-06-01

    day at 6 weeks and 40 hours in the week it really works 6 days in the week, or it is divided for 5 days? --answer-- I would smooth assume that the 6 day week refers to the opening times and operating hours of the business. Just so someone does not co

  • TS§ welcome message on certain days 2014-10-16

    Hello everybody, I would be interested if you also can adjust to certain days of the year the welcome message on my TS3 server, I will practically make a notification system for Birthdays: D My question therefore, one can, if so, how, and if not, no

  • Can we nachschreiben 2 class work on a day? (NRW Realschule) 2015-01-02

    I unfortunately missed the whole week until tomorrow and since I have English and math and both subjects I have to nachschreiben. Do I have to both work tomorrow nachschreiben? --answer-- Normally Nachschreibearbeiten that the student applies on the

Links

Domicile|Sante|

Copyright (C) 2019 m3tch.com, All Rights Reserved.

M3tch all rights reserved.

processed in 0.468 (s). 10 q(s)