Y
Y
Yan2020-05-02 01:29:54
cmd/bat
Yan, 2020-05-02 01:29:54

Modifying a script on the command line?

How to make this whole thing shorter?

@echo off
cd "/D" "D:\Program Files\Furi"
start "" "C:\Program Files (x86)\RivaTuner Statistics Server\rtss.exe"
start furi.exe
timeout /t 3 /nobreak
:repeat
timeout /t 1 /nobreak
tasklist | find "Furi.exe"
if not errorlevel 1 GOTO repeat
taskkill /f /im RTSS.exe
taskkill /f /im RTSSHooksLoader64.exe
exit


Second question (SOLVED)
Подскажите как сделать
tasklist | find "Furi.exe"
нечувствительным к регистру (т.е furi.exe он не находит)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rionnagel, 2020-05-02
@Slayer_nn

You are looking for /i to the find command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question