Script batch - Stringa destra
Viene utilizzato per estrarre i caratteri dalla fine di una stringa.
Esempio
@echo off 
set str = This message needs changed. 
echo %str% 
set str = %str:~-8% 
echo %str%La cosa fondamentale da notare sul programma sopra è che la mano destra della stringa viene estratta usando l'operatore ~ -'numero di caratteri da estrarre '.
Produzione
Il comando precedente produce il seguente output.
This message needs changed. 
changed.