All of These tips were taken directly from Jon Galloway's "Top 10 DOS Batch tips (Yes, DOS Batch...)" article from Monday, November 20, 2006 at https://weblogs.asp.net/jongalloway/top-10-dos-batch-tips-yes-dos-batch
@echo off
echo %%~1 = %~1
echo %%~f1 = %~f1
echo %%~d1 = %~d1
echo %%~p1 = %~p1