PDA

View Full Version : OT - SetupBuilder and 7-Zip



NewsArchive
12-15-2012, 04:35 AM
Using SetupBuilder 7.7.3805 to run a 7-zip extract.
I have a 3GB zip file that I need to extract but before I do that
I need to know how much disk space the extracted files will take.
I am using 7-zip.
I am using their 'List' command and trying to send the output to a text
file.
When I issue a run command line or run program, I cannot get the output
to go to the text file. I have used the '>', the '>>', and the '|'
symbols. None work.

Can anyone point me in the right direction?

Again, my main objective is find the needed disk space for the files in
the archive so I can see if the user has the needed free disk space
befor running the extract and erroring out.

Thanks, Dee


--
Darrel (Dee) Witham
Professional Data Services, Inc

NewsArchive
12-15-2012, 10:01 AM
Dee,

To get an "output" from a command line tool, you have to run it via a
command line interpreter (e.g. CMD.EXE). Windows API do not accept
redirections as arguments of a process.

See attached screenshot. This will start the command line interpreter and
redirect the output to list.txt

Hope this helps.

Friedrich

NewsArchive
12-18-2012, 01:42 AM
Thanks again, Dee

--
Darrel (Dee) Witham
Professional Data Services, Inc