@echo off if -%1==- echo Parameters: %%WL & pause & goto :EOF for /f "usebackq delims=" %%f in (`type %1`) do "notepad.exe" "%%f"