miroir de
https://github.com/PAPAMICA/Wiki-Tech.io.git
synchronisé 2024-07-07 02:20:13 +02:00
docs: update Scripting/Powershell
Cette révision appartient à :
Parent
cd6fd9b2c8
révision
ab955d766a
|
@ -2,7 +2,7 @@
|
|||
title: Powershell
|
||||
description:
|
||||
published: true
|
||||
date: 2021-05-08T15:27:24.714Z
|
||||
date: 2021-05-08T15:28:32.875Z
|
||||
tags:
|
||||
editor: ckeditor
|
||||
dateCreated: 2021-05-08T14:42:07.092Z
|
||||
|
@ -35,8 +35,8 @@ write-host"-------------------------------------------------------------------"
|
|||
$choix = read-host “faire un choix”
|
||||
switch ($choix)
|
||||
{
|
||||
{commande de mon action 1}
|
||||
{commande de mon action 2}
|
||||
1{commande de mon action 1}
|
||||
2{commande de mon action 2}
|
||||
‘x’ {$continue= $false}
|
||||
default {Write-Host "Choix invalide"-ForegroundColor Red}
|
||||
}</code></pre>
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket