Bharucha, Nikhil wrote: > Hi, > > > > Has anyone redirected WinZip output to a separate file? I can’t seem to > get it to work. Currently, it defaults to Standard Output but writes to > the beginning for the first zip and then it appends, and it always > writes “Searching…..” to Standard Error. One site recommended adding >> > with the file but Winzip thinks it is another file to zip.
A sample code snippet would help. Snipping some code from one of my scripts (this seems to work for me) : my $winzip = 'D:/Util/WinZip/wzzip.exe'; my @zip_options = qw(-a -r -p -whs); # add, recurse, sub paths, +hidden/system my $zipfile = 'somename.zip'; # send a newline to Winzip if not registered version open OUT, "| $winzip @zip_options $zipfile '*.*' >E:/tmp/wzzip.log" or die "wzzip pipe: $!"; print OUT "\n"; close OUT; I'm running it under tcsh which is probably why I quoted '*.*'. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs