You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PowerShell>Get-ChildItem-Path .\*-Include *.mp4 -Recurse
PowerShell>Get-ChildItem-Recurse -Path C:\ |Where-Object {$_.Length gt 1MB}
PowerShell>Get-ChildItem-Path .\*-Include *.mp4 -Recurse |Where-Object { $_.CreationTime-lt'2024-01-01' }
# exclu des fichiers. Semble ne fonctionner que pour les fichiers, et pas pour les répertoires
PowerShell>Get-ChildItem-Path .-Recurse -Exclude ('node_modules','node','target','*.jar') -File
# curl "https://api.example.com/data" | jq '.someField'# URL de l'API$url="https://api.example.com/data"# Appeler l'API et obtenir l'objet JSON# Invoke-RestMethod convertit automatiquement la réponse JSON en un objet PowerShell$jsonData=Invoke-RestMethod-Uri $url# Accéder au champ souhaité (remplacez 'someField' par le nom de votre champ)$fieldValue=$jsonData.someField# Afficher la valeur du champWrite-Host"La valeur du champ est : $fieldValue"# Si le champ est imbriqué, par exemple .data.item# $fieldValue = $jsonData.data.item