Pack Files (Only certain file Extensions)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hit_the_lights
Junior Member
Junior Member
Posts: 4
Joined: 2018-04-30, 08:44 UTC

Pack Files (Only certain file Extensions)

Post by *hit_the_lights »

Hello, for easy and quick backup of source files, i want to zip my entire project directory to usb memory stick.
There are a lot of big files, I don't need. It would be great if I could mark my project directory, alt-F5 and choose for example only *.cs, *.csproj and *.sln file and zip them to my memory stick. Is there any possibility to achieve this (or did I oversee something, that means, there is such a possibility)?

TIA
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Pack Files (Only certain file Extensions)

Post by *nsp »

Hi,

To achieve it, i usually use an empty zip file which i rename and put in my temporary folder (it could be your usb stick).
ex empty_archive.zip --> 20181211-prj04.zip
and open it in the destination side.
I created a filter with all the extension i want to keep *.java *.ini *.txt *.xml I set it in the source folder (the project).
I use BranchView [ctrl]+B on the project folder and select All and then copy to the destination that point to the zip file.
I select : Also pack path names
For me as i do not need empty folder it is ok to get configuration and source files.

Hope this helps.

NSP
User avatar
obeg
Junior Member
Junior Member
Posts: 43
Joined: 2006-09-28, 09:20 UTC
Location: Sweden

Re: Pack Files (Only certain file Extensions)

Post by *obeg »

This is built in the copy command

Mark the files and/or folders and press F5. Then you can fill in Copy only files of this type. For example:
*.cs *.csproj *.sln
Just add the vaild files to copy with a space in between.
You can also exclude files with | directive.

*.ex* | *.exclude
This will copy all files with exstension starting with ex, except files with extension exclude
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Pack Files (Only certain file Extensions)

Post by *Stefan2 »

hit_the_lights wrote: 2018-12-11, 14:07 UTC...
choose for example only *.cs, *.csproj and *.sln file and zip them ...
Maybe this way:

-be in your main folder
-search for your extension: *.cs, *.csproj *.sln
-In "search result" window >> [Feed to listbox]
-select all
-pack



?

 
hit_the_lights
Junior Member
Junior Member
Posts: 4
Joined: 2018-04-30, 08:44 UTC

Re: Pack Files (Only certain file Extensions)

Post by *hit_the_lights »

Thank you all for suggestions. Until now, I found it more simple:
- to list in branch view
- expand selection *.cs;*.csproj;*.sln
- alt-f5

I just wondered (or maybe in future version), if it could be possible to have a selection in Alt-F5, combobox in Pack Files Dialog for included (are also maybe excluded file extensions or file mask filters).
Post Reply