Faire un left ou right en Powershell
Ne garder que les caractère de gauche ou droite d'une chaine de caractères
Clear-Host
$Toto = "abcdefg"
#La commande suivante affichera abcd
Write-host $Toto.substring(0,$Toto.length -3)
#La commande suivante affichera efg
Write-host $Toto.substring($Toto.length -3)
Lien vers le fichier : cliquez ici
Publicité
Pages Web
| Site Web | Description |
|---|---|
| Technet Vbscript convertion | Converting VBScript's Left Function |
Article(s) suivant(s)
Article(s) précédent(s)