2632 次
3 に答える
1
From what I know, it's using the WildcardPattern as you describe. However, the cmdlet Get-ChildItem
limits it to the current directory (characters except \
), so it won't conflict with the -Recurse
switch that goes to unlimited levels.
于 2013-04-04T21:44:07.283 に答える
0
"C:\*\testfile.txt" では、アスタリスクは最初のレベルのディレクトリ (例: test) に対してのみ役割を果たします。探しているファイルは存在せず、期待どおりの出力が得られます。2 番目のレベルに別のアスタリスクを追加すると、目的の出力が得られます (例: "C:\*\*\testfile.txt")。Recurse スイッチを追加して、現在の場所から下に向かって検索を開始することもできます。
于 2013-04-05T13:04:01.113 に答える