Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arrays 如何按文件名限制阵列-Powershell v3_Arrays_Powershell_Filenames_Get Childitem - Fatal编程技术网

Arrays 如何按文件名限制阵列-Powershell v3

Arrays 如何按文件名限制阵列-Powershell v3,arrays,powershell,filenames,get-childitem,Arrays,Powershell,Filenames,Get Childitem,我试图使用GCI命令调用文件夹栏中的所有文件,即名称中带有“十二月”的文件 我也不想调用名为“月”的子文件夹中的文件。请尝试以下操作: Get-ChildItem c:\somefolder -exclude months,*december* Exclude参数接受要排除的术语数组。这些术语可以包括通配符。您是否尝试了-exclude参数?

我试图使用GCI命令调用文件夹栏中的所有文件,即名称中带有“十二月”的文件

我也不想调用名为“月”的子文件夹中的文件。请尝试以下操作:

Get-ChildItem c:\somefolder -exclude months,*december*

Exclude
参数接受要排除的术语数组。这些术语可以包括通配符。

您是否尝试了
-exclude
参数?