F5F Stay Refreshed Software Operating Systems Yes, you can compress all folders at the same level together in the directory structure.

Yes, you can compress all folders at the same level together in the directory structure.

Yes, you can compress all folders at the same level together in the directory structure.

R
Rosi628
Junior Member
44
04-01-2016, 12:27 PM
#1
Yes, it's feasible to build a script that compresses each of the specified subfolders individually.
R
Rosi628
04-01-2016, 12:27 PM #1

Yes, it's feasible to build a script that compresses each of the specified subfolders individually.

R
Ramzarn
Junior Member
36
04-09-2016, 09:08 AM
#2
Yes, it's feasible to build a script. It involves navigating command line parameters for tools like 7-zip or similar compressors. You can specify paths and options to control how files are added, extracted, or managed. For precise behavior, refer to the specific software documentation and adjust the syntax accordingly. If needed, organize folder lists with utilities such as Total Commander or other search functions.
R
Ramzarn
04-09-2016, 09:08 AM #2

Yes, it's feasible to build a script. It involves navigating command line parameters for tools like 7-zip or similar compressors. You can specify paths and options to control how files are added, extracted, or managed. For precise behavior, refer to the specific software documentation and adjust the syntax accordingly. If needed, organize folder lists with utilities such as Total Commander or other search functions.

K
Kaine13
Member
100
04-11-2016, 01:24 PM
#3
I attempted it, but it only archives the main files without including the subfolders. (sub_folder_x_sub_folder_y also holds numerous folders and subfolders)
K
Kaine13
04-11-2016, 01:24 PM #3

I attempted it, but it only archives the main files without including the subfolders. (sub_folder_x_sub_folder_y also holds numerous folders and subfolders)

K
kadjac
Junior Member
18
04-11-2016, 03:10 PM
#4
There's a command line parameter to add files recursively (to include subfolders) so.. 7z.exe a -r archive_name.zip c:\path\to\files\*.* -r (Recursive subdirectories for name search) switch Specifies the method of recursive search for items that match to wildcard of filename specified on the command line. Note: The -r (-r-) switch rules affect only searching phase of item (file or directory) with specified names. And if the directory is found for processing, 7-Zip will process also all subdirectories and all files of that directory and files of subdirectories, even if the search recursion is switched off with "-r-" switch. Syntax -r[- | 0] Switch Description -r Enable recurse subdirectories for item search. -r- Disable recurse subdirectories for item search. This option is default for all commands. -r0 Enable recurse subdirectories for item search only for wildcard names. You would have figured this out by simply typing 7z.exe in a command prompt.
K
kadjac
04-11-2016, 03:10 PM #4

There's a command line parameter to add files recursively (to include subfolders) so.. 7z.exe a -r archive_name.zip c:\path\to\files\*.* -r (Recursive subdirectories for name search) switch Specifies the method of recursive search for items that match to wildcard of filename specified on the command line. Note: The -r (-r-) switch rules affect only searching phase of item (file or directory) with specified names. And if the directory is found for processing, 7-Zip will process also all subdirectories and all files of that directory and files of subdirectories, even if the search recursion is switched off with "-r-" switch. Syntax -r[- | 0] Switch Description -r Enable recurse subdirectories for item search. -r- Disable recurse subdirectories for item search. This option is default for all commands. -r0 Enable recurse subdirectories for item search only for wildcard names. You would have figured this out by simply typing 7z.exe in a command prompt.

R
RulwenJr
Posting Freak
786
04-12-2016, 01:32 PM
#5
I adjusted the order of loops and fixed the syntax so each subfolder is processed correctly. The script now captures folder names properly for naming the zip file.
R
RulwenJr
04-12-2016, 01:32 PM #5

I adjusted the order of loops and fixed the syntax so each subfolder is processed correctly. The script now captures folder names properly for naming the zip file.