L
L
LittleMagic2016-06-03 23:00:29
cmd/bat
LittleMagic, 2016-06-03 23:00:29

The BAT file is crookedly launched. How to fix?

I know that it is very, very brick, but I did not come up with a better way to restart explorer.exe 15 seconds after entering Win.
There is reload.bat:

ping 127.0.0.1 -n 15 > nul
taskkill /f /IM explorer.exe
Start explorer.exe

and there is one that launches it, because it’s an ugly black window to watch for 15 seconds (with echo off all the more!):
@echo off
start /min reload.bat ^& exit

When I run startreload.bat (i.e. 2) just like that with two clicks, everything works fine. Through the task scheduler - refuses to see the first batch file.
jNIOa1h.pngfullscreen
What to do? Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#algooptimize #bottize, 2016-06-03
@LittleMagic

Ahh... the path to the folder must be written in the batch file or in the task

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question