PowerArchiver Home

  #1  
Old 01-31-2008, 07:33 AM
craniac craniac is offline
Junior User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Excluding file only in root folder

Using pacomp I am trying to zip up a folder tree that contains a web.config file in the root folder as well as in sub-folders.

I wish to exclude the one in the root directory but include the ones in sub-folders. Is this possible?

If I use -xweb.config or -x"\web.config" then all web.config files are excluded and if I use -x".\web.config" then none of the web.config files are excluded.

The rest of the command I'm using (with the questionable exclusion represented by ???) is
Code:
pacomp -a -r -p ??? -x"bin\*.config" FMWeb.zip FMWeb\*.*
The other exclusion command works correctly to exclude other .config files from the bin sub-folder.
Reply With Quote
  #2  
Old 02-01-2008, 05:45 AM
TBGBe's Avatar
TBGBe TBGBe is offline
Still Mainly Lurking
 
Join Date: Jul 2001
Location: UK
Posts: 2,151
Thanks: 6
Thanked 102 Times in 94 Posts
Two possibilities I can think of off the top of my head (not tried) -

1. include the root folder name
-x"FMWEB\web.config"

2. create and use a @list of all the files to be excluded.
__________________
Terry

WinXP SP3
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 -5. The time now is 09:58 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.