Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
|
informatique:microsoft:windows:set-variable [2011/05/10 09:05] benoit créée |
informatique:microsoft:windows:set-variable [2018/09/06 19:10] (Version actuelle) |
||
|---|---|---|---|
| Ligne 8: | Ligne 8: | ||
| ou | ou | ||
| echo ${VAR} | echo ${VAR} | ||
| + | |||
| + | Stocker la sortie d'une commande dans une variable : | ||
| + | $VAR=(command.exe) | ||
| + | |||
| + | Exemple : | ||
| + | $TODAY=(get-date -uformat "%m/%d/%Y") | ||