Donate Share

GnuWin

Subscribe

Removing folders from a tar

  1. 2009-11-12 16:58:11 UTC

    I'm creating a tar file (with a VBA script, but that shouldn't matter). The command used to generate the file is below. The problem is, the tar file includes the full path of the files that were included in the file. I need to either create it or modify it afterwards so the resulting tar file includes just the files in the last folder (8314048612111209). I realize this is probably simple, but my attempts to add in the strip-components option have resulted in syntax errors. Can anyone help with the correct command for this?

    C:\Progra~1\GnuWin32\bin\bsdtar -cf L:\HRA-LIDS\BatchFiles\2009-11-12\8314048612111209.tar L:\HRA-LIDS\BatchFiles\2009-11-12\8314048612111209

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.