S
S
shell_guy2022-02-04 11:53:05
cmd/bat
shell_guy, 2022-02-04 11:53:05

How to loop the execution of a command in bat if the process disappears?

Good day!
does not process a script that should be run once a month on every 2nd day:

@echo off
chcp 866 >nul
set time=2592000
:loop
cd C:\Users\usr\Desktop\win_radius_analyzer && python analyze_influx.py %time% >nul
Goto :loop

please point out the error in the code.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pavelsha, 2022-02-04
@pavelsha

What do you want to do?
Do I need to run a script handler on a specific schedule?
Then look at the documentation for the built-in
TaskSheduler in Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question