copy_as_empty_files.bat
@echo off
setlocal
rem Prompt user for source folder
set /p source_folder=Enter the source folder path:
rem Prompt user for destination folder
set /p destination_folder=Enter the destination folder path:
rem Check if the source folder exists
if not exist "%source_folder%" (
echo Source folder does not exist.
exit /b 1
)
rem Create the destination folder if it does not exist
if not exist "%destination_folder%" (
mkdir "%destination_folder%"
)
rem Loop through each file in the source folder and create an empty file in the destination folder
for %%f in ("%source_folder%\*.*") do (
type nul > "%destination_folder%\%%~nxf"
)
echo Files copied as empty files to %destination_folder%
endlocal