by XnTriq (Posted Thu Aug 04, 2016 9:30 pm)
Let's pretend your exported video frames have the following name pattern:
Running the following batch file…
… will leave you with a set of 9155 identical copies of frame.jpg.
Overwrite the 3625 frames in X:\export\ with their counterparts in X:\temp\.
Read Main Topic
Let's pretend your exported video frames have the following name pattern:
- X:\export\frame_0001.jpg
- X:\export\frame_0002.jpg
- …
- X:\export\frame_9155.jpg
Running the following batch file…
X:\temp\replicate.bat wrote:
- Code: Select all
@echo off
for /l %%i in (1,1,9155) do call :docopy %%i
goto end
:docopy
set numero=000%1
set numero=%numero:~-4%
copy frame.jpg frame_%numero%.jpg
:end
… will leave you with a set of 9155 identical copies of frame.jpg.
Overwrite the 3625 frames in X:\export\ with their counterparts in X:\temp\.
- Server Fault: How can I create multiple, numbered copies of a file in Windows?
- Super User: Create Batch file to copy one folder and then generate it 1,000 times naming it 'AE 0001' up to 'AE 1000'
Read Main Topic