gpt4 book ai didi

windows - 在 Windows 命令行上使用 7-zip 解压 *.tar.bz2

转载 作者:可可西里 更新时间:2023-11-01 10:00:38 24 4
gpt4 key购买 nike

我在 powershell 脚本中有一个函数可以解压我的 CppUnit.tar.bz2 文件。我已经安装了 7-zip,在我的函数中有以下内容:

Function untar ($targetFile) {        
$z ="7z.exe"

$defaultDestinationFolder = 'C:\Program Files\'
$destinationFolder = (Get-Item $defaultDesitantionFolder).fullname

$tarbz2Source = $targetFile
& "$z" x -y $tarbz2Source

$tarSource = (get-item $targetFile).basename
& "$z" x -y $tarSource -o $destinationFolder

Remove-Item $tarSource
}

运行此命令将所有文件提取到我想要的位置,但所有文件的结尾都是“,v”:

...
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\estring.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestSuite.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\Test.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestCase.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TextTestResult.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\Makefile.am,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestSuite.cpp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\Exception.cpp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\cppunit.dsw,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestFailure.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestCaller.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestResult.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TextTestResult.cpp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestRegistry.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestFailure.cpp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\Exception.h,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestRegistry.cpp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\cppunit.dsp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestResult.cpp,v
Extracting cppunit-cvs-repo-archive\cppunit\cppunit\Attic\TestCase.cpp,v

Everything is Ok

Folders: 149
Files: 1128
Size: 20671974
Compressed: 21626880

谁能告诉我如何解决这个问题?

最佳答案

,v 后缀表示这些不是文件本身,而是 CVS 维护的版本历史文件——每个 ,v 文件不仅包含最新版本的文件,但增量重建文件的任何先前版本。它们都在 Attic 子目录中这一事实表明它们在某个时候都通过 cvs remove 被删除了。这些以及基目录是 cppunit-cvs-repo-archive 的事实表明您需要将解压后的存档视为 CVS 存储库,并使用适当的工具来 check out 您想要工作的文件不仅是“修复”看起来错误的名称...

关于windows - 在 Windows 命令行上使用 7-zip 解压 *.tar.bz2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11162260/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com