How about using good(?) old goto
?
:loop
echo Ooops
goto loop
See also this for a more useful example.
More Related Contents:
- How to do something to each file in a directory with a batch script
- Batch script loop
- Batch file v PowerShell script
- How can I auto-elevate my batch file, so that it requests from UAC administrator rights if required?
- Batch file: Find if substring is in string (not in a file)
- Iterate all files in a directory using a ‘for’ loop
- How do I get the result of a command in a variable in windows?
- Trouble with renaming folders and sub folders using Batch
- How to wait all batch files to finish before exiting?
- Find out if file is older than 4 hours in Batch file
- What does %date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2% mean?
- Show a popup/message box from a Windows batch file
- Windows batch: formatted date into variable
- How do I echo and send console output to a file in a bat script?
- Set a persistent environment variable from cmd.exe
- IF… OR IF… in a windows batch file
- Windows batch script to read an .ini file
- Copy text from a Windows CMD window to clipboard
- File redirection in Windows and %errorlevel%
- Start multiple tasks in parallel and wait for them in windows?
- CALL command vs. START with /WAIT option
- Dealing with quotes in Windows batch scripts
- “invalid path 0 files copied” Error while using xcopy command
- Windows batch: sleep [duplicate]
- how to get yesterday’s date in a batch file
- Can I send some text to the STDIN of an active process under Windows?
- While loop in batch
- Windows shell command to get the full path to the current directory?
- Batch program to to check if process exists
- Windows batch script to delete everything in a folder except one