28 нояб. 2023 г. · Change location to the root directory before Get-ChildItem -Name . Use Get-Item -Path "$baseDir\*" with -Exclude instead of Get-ChildItem -Name ... |
24 июн. 2019 г. · I have to remove files permissions from a shared directory if the file has the LastWriteTime attribute as 30 days. This is the script i wrote. |
6 нояб. 2023 г. · Is it possible to use -Exclude with Get-ChildItem -Recurse to avoid certain subdirectories? For example, can I recurse C:\User<user> and use -Exclude to skip ... |
16 июн. 2015 г. · I'm trying to write a script that will alert if any file or folder exists that is over 30 minutes old. |
29 июл. 2021 г. · There's a -notin parameter you may try using. Also, exclude paths is a comma separated list as opposed to an array if you want to try that. |
6 мар. 2013 г. · I'm trying to use Get-ChildItem to display the names of folders that are inside of another folder. There is always a folder name ... |
25 дек. 2023 г. · Short and sweet: I'm creating a script that will search for files and move matches to a specific folder...but I want to exclude the target ... |
14 нояб. 2014 г. · The exclude parameter applies to the Name property of the Item. C:\Windows is part of the FullName property, and so the exclude parameter doesn't touch it. |
12 апр. 2016 г. · I'm trying to run searches of a users network share; and omit the folders "my music" and "my pictures". What I have for code is below. |
28 февр. 2023 г. · I tried adding -Exclude .\*.* but to no avail, Get-ChildItem still parses all files residing in the parent directory and then Move-Item would ... |
Novbeti > |
Axtarisha Qayit Anarim.Az Anarim.Az Sayt Rehberliyi ile Elaqe Saytdan Istifade Qaydalari Anarim.Az 2004-2023 |