Skip to main content
1 of 3
THE JOATMON
  • 949
  • 7
  • 14

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
THE JOATMON
  • 949
  • 7
  • 14