In this batch script, both %~s1 and %~fs1 output D:THISIS~1USERSB~1. What’s the difference between them, and how can you demonstrate this difference in a batch script?
batch script:
@echo off
set "HOME_DIR=D:ThisIsBatchDirectoryWithLongPathUsersBatchSubdirectory"
call :Method %HOME_DIR%
exit /b
:Method
echo %~s1
echo %~fs1
rem for %%i in (%~1) do (
rem echo %%~si
rem echo %%~fsi
rem )
exit /b
demonstrate this difference in a batch script