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
Pack Files (Only certain file Extensions)
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 4
- Joined: 2018-04-30, 08:44 UTC
Re: Pack Files (Only certain file Extensions)
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
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
Re: Pack Files (Only certain file Extensions)
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
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
Re: Pack Files (Only certain file Extensions)
Maybe this way:hit_the_lights wrote: ↑2018-12-11, 14:07 UTC...
choose for example only *.cs, *.csproj and *.sln file and zip them ...
-be in your main folder
-search for your extension: *.cs, *.csproj *.sln
-In "search result" window >> [Feed to listbox]
-select all
-pack
?
-
- Junior Member
- Posts: 4
- Joined: 2018-04-30, 08:44 UTC
Re: Pack Files (Only certain file Extensions)
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).
- 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).