Question
Create new folder with copy when not existing
- Matthew BETTON
- Hors Ligne
- Membre platinium
-
Réduire
Plus d'informations
- Messages : 968
- Remerciements reçus 0
il y a 13 ans 4 mois #13078
par Matthew BETTON
Réponse de Matthew BETTON sur le sujet Re:Create new folder with copy when not existing
Sorry, just one more thing :
It works, but you don't have to specify 'desktop.ini' in the exclusion filter as we then filter the directories with 'Where-Object' by the pipeline.
[code:1]$users = Get-ChildItem c:\users -Force -Exclude Public,Administrator,'Default user','All Users' | Where-Object {$_.PsIscontainer}[/code:1]
It works, but you don't have to specify 'desktop.ini' in the exclusion filter as we then filter the directories with 'Where-Object' by the pipeline.
[code:1]$users = Get-ChildItem c:\users -Force -Exclude Public,Administrator,'Default user','All Users' | Where-Object {$_.PsIscontainer}[/code:1]
Connexion ou Créer un compte pour participer à la conversation.
Temps de génération de la page : 0.035 secondes
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les débutants
- Create new folder with copy when not existing