我与McAfee FRP加密的文件和文件夹共享文件,并且由于未知的问题,某些文件''
的文件名末尾添加了特殊字符。(例如:helloworld.txt
代替helloworld.txt
)我正在尝试找出''
文件名末尾没有特殊字符的文件。
我尝试使用下面的powershell命令查找以结尾的文件''
。
这是命令: Get-ChildItem * . * -Recurse
但是,我想查找不以特殊字符结尾的文件,''
并且无法使用(NOT, ! and ~
)否定上述命令来获取想要的文件
文件夹中的文件如下:
helloworld.ppt, McAfee_test.txt, Data.txt, testabc.xlxs, doneDone.jpeg, test1.txt, hello.xml, ok123.mp3
上面的命令将返回以下结果:
test1.txt, testabc.xlxs, helloworld.ppt, ok123.mp3
哪个命令将重新调整以下结果?
McAfee_test.txt, Data.txt, doneDone.jpeg, hello.xml
使用-Exclude
参数:
Get-ChildItem -File -Recurse -Exclude *
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句