Wednesday, May 14, 2025

An example of a bat file that shows dialogues

@echo off
setlocal

:: Prompt user for input file names
set /p jpgfile="Enter the name of the JPG file: "
set /p archive="Enter the name of the 7z file: "
set /p output="Enter the name of the output JPG file: "

:: Embed the archive in the JPG
copy /B "%jpgfile%"+"%archive%" "%output%"

echo Operation completed!
pause


An example of a bat file that shows dialogues

@echo off setlocal :: Prompt user for input file names set /p jpgfile="Enter the name of the JPG file: " set /p archive="Ent...