Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8118365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:27:56+00:00 2026-06-06T04:27:56+00:00

I have a function in a powershell script that is supposed to untar my

  • 0

I have a function in a powershell script that is supposed to untar my CppUnit.tar.bz2 file. I have installed 7-zip, and in my function I have the following:

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
}

Running this extracts all the files where I want them, BUT all the files get “,v” as their ending:

...
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

Can anyone tell me how I can fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:27:57+00:00Added an answer on June 6, 2026 at 4:27 am

    The ,v suffix indicates that these are not the files themselves, but version history files maintained by CVS – each ,v file contains not only the latest version of the file, but the deltas to reconstruct any previous version of the file. The fact that they’re all in an Attic subdirectory indicates that they were all removed via cvs remove at some point. These and the fact that the base directory is cppunit-cvs-repo-archive says you need to treat the unpacked archive as a CVS repository, and use the appropriate tools to check out the files you want to work with, not just “fix” what looks like wrong names…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code snippet from my PowerShell script that... Loops through a
I have a powershell script that needs to read from a config file with
I have function in a powershell 2.0 script that I am launching as a
I have a PowerShell script that configures web site and web application settings in
I currently have a PowerShell script that is used for complex automated Exchange mailbox
I have a powershell script with the following code in it... $appdir = Split-Path
I have created a powershell module (.psm1) file that includes a few other powershell
Ok, so I have a file called functions.ps1 that contains only function code: something
I often have the following situation in my PowerShell code: I have a function
Does anyone have a PowerShell script that will rename a local user account (Guest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.