I'd never thought about it until seeing nicael's answer, but I kind of like "quoting the file".
test.bat
@echo off setlocal enableDelayedExpansion set argument1=!%1! echo %argument1%>test.txt
file2.bat
@echo off echo %~1
I'd never thought about it until seeing nicael's answer, but I kind of like "quoting the file".
test.bat
@echo off setlocal enableDelayedExpansion set argument1=!%1! echo %argument1%>test.txt
file2.bat
@echo off echo %~1