
:: Convert folder of AWLive video format to AVI. Before running, you just need to specify the source directory and the render directory.
:: Place this script into the directory where you have AWlive installed. In my case it was C:\Program Files\Active WebCam.
:: And run it from there. A double-click on the file will start it.
:: Sep-10-2025
@echo off
color 2F
:: Enable delayed variable expansion
setlocal enabledelayedexpansion
:: Set the source directory here
set "sourceDir=G:\Videos\encode AWLive to AVI"
:: Set the render directory here
set "renderDir=G:\Videos\AVI"
:: Initialize the rendered files counter
set /a renderedCount=0
:: Count the total number of .AWLive files in the source directory
set /a totalFiles=0
for %%G in ("%sourceDir%\*.AWLive") do (
set /a totalFiles+=1
)
echo !totalFiles! total files to render
pause
:: Check if the render directory exists
if not exist "!renderDir!" (
echo Output directory does not exist.
echo Please create the directory and try again.
pause
exit /b
)
:: Loop through each .AWLive file in the source directory
for %%F in ("%sourceDir%\*.AWLive") do (
:: Debugging: Print the filename
set filename=%%~nF
echo.
echo Rendering: %renderDir%\!filename!.avi
echo.
if exist "%renderDir%\!filename!.avi" (
echo File already exists: "%renderDir%\!filename!.avi". Skipping...
)
if not exist "%renderDir%\!filename!.avi" (
color 2F
:: Call conversion program
ImageConvert.exe "%sourceDir%\!filename!.AWLive" "%renderDir%\!filename!.avi" 3
)
:: Increment counter
set /a renderedCount+=1
:: Show progress
echo.
echo !renderedCount! files rendered out of !totalFiles!.
)
color 3F
:: Print a message indicating that the conversion process is finished
echo.
echo All files in folder rendered!
:: Wait for the user to press a key before closing the command prompt window
pause
John 1:1-3 KJV | In the beginning was the Word, and the Word was with God, and the Word was God. The same was in the beginning with God. All things were made by him; and without him was not any thing made that was made.
Sep 10, 2025, 9:23:11 AM | by Admin