Powershell:根据两个文件夹中的内容处理两个文件夹中的文件
我有两个目录:c:\Rar 和 c:\unRared
Rar - 包含数百个 RAR 文件。 RAR 中只有一个文件。存档内的文件扩展名为 *.TRN。 UnRared 具有未归档的文件(数百个带有 *.TRN 扩展名的文件)
我一直在尝试创建一个 Powershell 脚本来仅提取尚未提取的文件。
I have two directories: c:\Rar and c:\unRared
Rar - contains hundreds of RAR'ed files. Only one file inside the RAR. File inside the archive is with *.TRN extension.
UnRared has unarchived files (hundreds of files with *.TRN extension)
I've been trying to create a Powershell script to extract only files that have not been extracted already.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
难道您不能只向您拥有的任何压缩程序提供参数,告诉它不要覆盖现有文件吗?
can't you just supply parameters to whatever compression program you have telling it not to overwrite existing files?
我自己解决了这个问题...好吧,不是真的,在开发人员的帮助下
Knocked this out on my own...well, not really, with the help of developer