Batch File Help-Youtube Auto viewer. How to stop loop after specfic amount of time and user input beforehand

StackOverflow https://stackoverflow.com/questions/16267500

  •  13-04-2022
  •  | 
  •  

Frage

Hiya made a simple Youtube autoviewer using notepad*BATCH FILE but i want to have user input--> so the user can change the link before pressing start

And i wont it to stop script after its LOOPS 250 times.

:top
start /min iexplore.exe http://www.youtube.com/watch?v=u5DzRTyhs_0
@echo "waiting"
ping -n 5 127.0.0.1>nul
@echo "done waiting"
TASKKILL /F /IM "iexplore.exe"
ipconfig /release /renew
GOTO top

So USER CAN CHANGE URL LINK THEN PRESS START.

Many thks

War es hilfreich?

Lösung 2

http://www.mpgh.net/forum/showthread.php?t=754730 <-- Working EXE version, finlayy finish coding it!

Andere Tipps

Add after "start /min iexplore.exe http://www.youtube.com/watch?v=u5DzRTyhs_0": set /a number=%number% + 1 if "%number%"=="250" (goto whereever) if not "%number%"=="250" (goto whereever)

for /L %a in (1,1,10) do @(echo run %a&batch.exe)

http://www.pcreview.co.uk/forums/loop-example-cmd-window-t1468124.html

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top