Hot answers tagged

18 votes
Accepted

How can I skip a cycle in a FOR loop?

Just place a label :nextiteration (or whatever other name you like) as the last statement inside the for-loops body and goto to that label when you decide that you can skip the rest of the for-body. ...
Tonny's user avatar
  • 31.2k
4 votes

How can I skip a cycle in a FOR loop?

Windows batch doesn't have too many options for skipping an iteration of the loop. The methods you may use are: Put an IF block around the part of the loop that you would like to skip: @Echo Off if A ...
harrymc's user avatar
  • 476k
3 votes
Accepted

How to convert Samsung's motion photos to still photos?

In "motion photos", the short MP4 video clip is added to the JPEG trailer. The clip can be stripped out by the ExifTool program: https://exiftool.org/forum/index.php?topic=10133.0 exiftool -...
Xavier Poinas's user avatar
1 vote

How to Batch Apply Multiple Commands? FFmpeg

This would mix all videos in folder with the same audifile Audiofile.mp3, speed up video and audio by 50% and apply a text on the screen: for /f "delims=" %f in ('dir /b folder\*.mp4') do ...
Ricardo Bohner's user avatar
1 vote
Accepted

Batch script to re-size JPEGs in music folder to 350x350 and delete unwanted files

For me this works, I hope it is as your intended. I filled the batch code with comments to explain what every command does (or most of them). Test this only on a copy to see if it works as expected. ...
Ricardo Bohner's user avatar
1 vote
Accepted

Complex escape coding in a batch for-loop

@echo off set "_Math=*" set "_Calc=3*1073741824" set "_PSSctr=%tmp%\PS~MathTemp.ps1" 2>nul del /q /f "%_PSSctr%" > "%_PSSctr%" ( ...
Io-oI's user avatar
  • 8,130

Only top scored, non community-wiki answers of a minimum length are eligible