How to add files larger than 100 kb to the 7z archive?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
PiotrMP006
Posts: 13
Joined: 08 Sep 2017 06:10

How to add files larger than 100 kb to the 7z archive?

#1 Post by PiotrMP006 » 17 May 2021 00:49

Hi

How to add files larger than 100 kb to the 7z archive?

Squashman
Expert
Posts: 4292
Joined: 23 Dec 2011 13:59

Re: How to add files larger than 100 kb to the 7z archive?

#2 Post by Squashman » 17 May 2021 07:41

The FOR command provides a mechanism to get the size of a file.

Code: Select all

for %%G IN (somefile.txt) do @echo %%~zG
You may have remembered this when you were directed to read the help file when you asked this question

Post Reply