{"id":851,"date":"2021-01-27T23:03:14","date_gmt":"2021-01-28T07:03:14","guid":{"rendered":"http:\/\/gantovnik.com\/bio-tips\/?p=851"},"modified":"2021-02-09T08:24:26","modified_gmt":"2021-02-09T16:24:26","slug":"151-script-to-create-multi-volume-rar-archive-with-specific-size-of-each-volume","status":"publish","type":"post","link":"https:\/\/gantovnik.com\/bio-tips\/2021\/01\/151-script-to-create-multi-volume-rar-archive-with-specific-size-of-each-volume\/","title":{"rendered":"#151 Script to create multi-volume rar archive with specific size of each volume"},"content":{"rendered":"<p>#151 Script to create multi-volume rar archive with a specific size of each volume.<\/p>\n<p>I request 3GB for each volume.<\/p>\n<p>Create a bat file with the following code:<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nSET WINRAR=&quot;C:\\Program Files\\WinRAR&quot;\r\nfor \/D %%f in (&quot;D:\\create_rars\\*&quot;) do (\r\n%WINRAR%\\RAR.exe a -ep1 -r -v3G -idcdp -t -df &quot;D:\\create_rars\\%%~nxf.rar&quot; &quot;%%f&quot;\r\n)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#151 Script to create multi-volume rar archive with a specific size of each volume. I request 3GB for each volume. Create a bat file with the following code: SET WINRAR=&quot;C:\\Program Files\\WinRAR&quot; for \/D %%f in (&quot;D:\\create_rars\\*&quot;) do ( %WINRAR%\\RAR.exe a -ep1 -r -v3G -idcdp -t -df &quot;D:\\create_rars\\%%~nxf.rar&quot; &quot;%%f&quot; )<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_lmt_disableupdate":"yes","_lmt_disable":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-851","post","type-post","status-publish","format-standard","hentry","category-batch"],"modified_by":"gantovnik","jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8bH0k-dJ","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":907,"url":"https:\/\/gantovnik.com\/bio-tips\/2021\/05\/164-batch-script-to-create-md5-hash-for-every-file-in-the-folder-then-write-them-to-the-text-file\/","url_meta":{"origin":851,"position":0},"title":"#164 Batch script to create md5 hash for every file in the folder, then write them to the text file","author":"gantovnik","date":"2021-05-05","format":false,"excerpt":"#164 Batch script to create md5 hash for every file in the folder, then write them in text file [code language=\"python\"] @echo off FOR \/F \"delims=\" %%F IN ('dir \/B \/A \/S *') DO ( for %%D in (\"%%~dpF\\.\") do ( set filename=%%~nxD.md5 ) ) TYPE NUL > %filename% For\u2026","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2219,"url":"https:\/\/gantovnik.com\/bio-tips\/2024\/06\/431-hypermesh-python-script-to-create-nodes-using-coordinates-from-csv-file\/","url_meta":{"origin":851,"position":1},"title":"#431 HyperMesh python script to create nodes using coordinates from csv file","author":"gantovnik","date":"2024-06-24","format":false,"excerpt":"Finally, I read how to write a script for HyperMesh in python. In this example, the script reads the coordinates of points from a cvs file. [code language=\"python\"] import os import hm import hm.entities as e from hwx import gui import csv model=hm.Model() os.chdir(r\"D:\\projects\\wordpress\\ex431\") with open('ex431_coordinates.csv', mode ='r') as file:\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/gantovnik.com\/bio-tips\/wp-content\/uploads\/2024\/06\/ex431.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":593,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/07\/87-batch-script-to-delete-empty-folders\/","url_meta":{"origin":851,"position":2},"title":"#87 One-line batch script to delete empty directories","author":"gantovnik","date":"2020-07-31","format":false,"excerpt":"#87 One-line batch script to delete empty directories: Variant 1 [code language=\"python\"] for \/f \"delims=\" %%i in ('dir \/s \/b \/ad ^| sort \/r') do rd \"%%i\">NUL [\/code] Variant 2 [code language=\"python\"] for \/f \"usebackq\" %%d in (`\"dir \/ad\/b\/s | sort \/R\"`) do rd \"%%d\" [\/code]","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":613,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/09\/93-summing-values-of-a-column-using-awk-command\/","url_meta":{"origin":851,"position":3},"title":"#93 Summing values of a column using awk","author":"gantovnik","date":"2020-09-09","format":false,"excerpt":"#93 Summing values of a column using awk command Assume we have \"test1.txt\" file with data in columns: [code language=\"python\"] a,a,aa,1 a,a,aa,2 d,d,dd,7 d,d,dd,9 d,dd,d,0 d,d,dd,23 d,d,dd,152 d,d,dd,7 d,d,dd,5 f2,f2,f2,5.5 [\/code] Save the following awk script in the file \"ex93.txt\" [code language=\"python\"] #The -F',' tells awk that the field separator\u2026","rel":"","context":"In &quot;awk&quot;","block_context":{"text":"awk","link":"https:\/\/gantovnik.com\/bio-tips\/category\/awk\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1969,"url":"https:\/\/gantovnik.com\/bio-tips\/2023\/09\/393-count-the-number-of-files-with-a-specific-extension-in-a-folder-using-batch-script\/","url_meta":{"origin":851,"position":4},"title":"#393 Count the number of files with a specific extension in a folder using batch script","author":"gantovnik","date":"2023-09-23","format":false,"excerpt":"[code language=\"python\"] @echo off set count=0 for \/f \"delims=\" %%i in ('dir \/s \/b *.fem') do ( set \/a \"count=count+1\" ) echo Number of fem files in the folder = %count% pause exit 0 [\/code] Output: [code language=\"python\"] Number of fem files in the folder = 20 Press any key\u2026","rel":"","context":"In &quot;batch&quot;","block_context":{"text":"batch","link":"https:\/\/gantovnik.com\/bio-tips\/category\/batch\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":541,"url":"https:\/\/gantovnik.com\/bio-tips\/2020\/05\/doptprm-discrete\/","url_meta":{"origin":851,"position":5},"title":"DOPTPRM, DISCRETE","author":"gantovnik","date":"2020-05-11","format":false,"excerpt":"DOPTPRM, DISCRETE Bulk Data Entry Discreteness parameter. Influences the tendency for elements in a topology optimization to converge to a material density of 0 or 1. Default DISCRETE=1. Recommended bounds are 0.0 and 2.0 for shells, or 3.0 for solids. Improving Discreteness. There are numerous ways to improve the discreteness\u2026","rel":"","context":"In &quot;HyperMesh&quot;","block_context":{"text":"HyperMesh","link":"https:\/\/gantovnik.com\/bio-tips\/category\/hypermesh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/comments?post=851"}],"version-history":[{"count":0,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/posts\/851\/revisions"}],"wp:attachment":[{"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/media?parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/categories?post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gantovnik.com\/bio-tips\/wp-json\/wp\/v2\/tags?post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}