English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 14 September 2017, 09:28   #1
Frankie
Registered User

 
Join Date: Mar 2016
Location: Yes
Posts: 7
Zipping a folder's content without the folder itself

Does anyone know how to get zip to compress a directory full of files, but not include the initial parent directory?

For example:

Code:
the_directory
 |
  --- x.info
  --- x
  --- subdirectory
      |
	  --- file1.txt
	  --- file2.txt
If I use the command zip -9 -r archive.zip the_directory/#?, archive.zip contains "the_directory" and all files and subdirectories. I only want it to contain the files and subdirectories, like so:

Code:
x.info
x
subdirectory
  |
  --- file1.txt
  --- file2.txt
I know I can do the following and it'll work:
  • cd the_directory
  • zip -9 -r /archive.zip #?
  • cd /

But I'd prefer it if zip can do it all in one command for cleanliness.

Thanks!
Frankie is offline  
AdSense AdSense  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find the C: folder? Sanxion Retrogaming General Discussion 7 17 July 2017 19:12
live pc folder access ed777 support.Hardware 4 26 July 2016 17:32
WHDLoad Folder? Enverex support.FS-UAE 3 02 October 2014 07:49
No storage folder available Emu Amiga project.ClassicWB 6 09 September 2010 17:52
Multiple games in the same folder mr_a500 project.WHDLoad 11 21 January 2005 18:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:08.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.14492 seconds with 12 queries