07-23-2023, 08:46 AM
Can anyone explain what is `:~1%` in the below statement in a batch file? I assigned the value of `%variable` to servername and tried `echo %variable`. I get the same server name as output. Can anyone explain how the statement below works?
set variable=%variable:~1%
set variable=%variable:~1%