- May
- 13,399
- 190
@TRUENAME will help. Note that @TRUENAME quotes/unquotes filenames as necessary (and does not check for their existence)
I use several directory aliases. And I have the alias
I use several directory aliases. And I have the alias
e=call u:\tpad.btm
. The BTM creates files that don't exist (to avoid textpad's "Create...?" message box) but it did not (until today) handle directory aliases. Now it does. It's fairly simple.
Code:
REM TPAD.BTM
setlocal
set command=d:\textpad7\textpad.exe
do i=1 to %#
set filename=%@truename[%[%i]]
if not exist %filename touch /c /q %filename
set command=%command %filename
enddo
start %command