Relative Content

Tag Archive for windowsbatch-filecmd

Windows 11 22H2 has changed behavior in CMD

So with the move to Windows 11 22H2 and the change to Terminal as the default, there has been some additional changes to CMD. I would like to know what has changed to cause the different behavior in CMD. I have tried to run in Terminal using CMD, I have also started CMD on it own and tried the Legacy mode, all of which has the new behavior in Windows 11.

%~s1 and %~fs1 difference in batch script?

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?