Anonymous_User Absent Member.
Absent Member.
2913 views

Free Windows command line zip tool that does "move"?

Hi,
Anyone know a free/open source Windows command line tool that will move
files to an archive, in other words delete files after a successful
archiving operation? I use 7zip a lot but it doesn't have that
functionality as far as I can tell.
Thanks
0 Likes
8 Replies
ukdtom Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

Batchjob......

Line 1: <Add to Archive>
Line 2: FDisk


--
Tommy Mikkelsen
IT Quality A/S, Denmark
Novell Support Forums SYSOP / NKP

Sorry, but no support through email
Please join http://www.open-horizons.net

Best Regards Tommy Mikkelsen Denmark Please Report back any success or failure, That way we all learn Sorry, but no support through email "I hate bugs".......Tommy Lee Jones, MIB
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

Yeah, can do that with 7z, but then I won't know if it succeeded before
I wipe the disk 😉

Tommy Mikkelsen wrote:

> Batchjob......
>
> Line 1: <Add to Archive>
> Line 2: FDisk

0 Likes
ukdtom Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

Check to see, if the 7Zip stuff doesn't have a return value...

Most batch enabled stuff has


--
Tommy Mikkelsen
IT Quality A/S, Denmark
Novell Support Forums SYSOP / NKP

Sorry, but no support through email
Please join http://www.open-horizons.net

Best Regards Tommy Mikkelsen Denmark Please Report back any success or failure, That way we all learn Sorry, but no support through email "I hate bugs".......Tommy Lee Jones, MIB
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

On Fri, 14 Aug 2009 21:15:40 GMT
"Tommy Mikkelsen" <tm@NoSpAmitq.dk> wrote:

> Check to see, if the 7Zip stuff doesn't have a return value...
>
> Most batch enabled stuff has
>
>

Hi
Maybe have a look at peazip?
http://peazip.sourceforge.net/

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
up 10 days 1:03, 2 users, load average: 0.30, 0.20, 0.12
GPU GeForce 8600 GTS Silent - Driver Version: 190.18

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

or compact.exe...native to Windows.
"Malcolm" <malcolm_nospamlewis@bellsouth.net> wrote in message
news:20090814162825.7ca57216@bellsouth.net...
> On Fri, 14 Aug 2009 21:15:40 GMT
> "Tommy Mikkelsen" <tm@NoSpAmitq.dk> wrote:
>
>> Check to see, if the 7Zip stuff doesn't have a return value...
>>
>> Most batch enabled stuff has
>>
>>

> Hi
> Maybe have a look at peazip?
> http://peazip.sourceforge.net/
>
> --
> Cheers Malcolm °¿° (Linux Counter #276890)
> SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.25-0.1-default
> up 10 days 1:03, 2 users, load average: 0.30, 0.20, 0.12
> GPU GeForce 8600 GTS Silent - Driver Version: 190.18
>



0 Likes
zeffan Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

Maybe have a look at peazip?
PeaZip download free RAR 7Z TAR ZIP extraction


No thanks. I just got back from the bathroom. <g>
Besides, you must keep your eyes looking straight ahead.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

On Fri, 14 Aug 2009 20:34:57 +0000, £Jim wrote:

> Hi,
> Anyone know a free/open source Windows command line tool that will move
> files to an archive, in other words delete files after a successful
> archiving operation? I use 7zip a lot but it doesn't have that
> functionality as far as I can tell.
> Thanks



pkzip is supposed to do this with the -m switch, IIRC.

Jim


--
Jim Henderson, CNA6, CDE, CNI, LPIC-1, CLA10, CLP10
Novell Technical Training
0 Likes
JenniC Absent Member.
Absent Member.

Re: Free Windows command line zip tool that does "move"?

Consider biterscripting language. Here is a pseudo script to zip all files in "/directory1", into archive "/archive1", then move all files successfully zipped to "/directory2".






# Pseudo script archive.
# Collect a list of files in /directory1.
var str list ; lf -n "*" "/directory1" > $list
# Add files to archive one by one.
while ($list <> "")
do

# Get the next file.
var str file ; lex "1" $list > $file

# Add file to archive. Collect errors in a string variable.
var str errors
system "path to your archive-zip command line program" $file "/archive1" 2>$errors

# Were there any errors ? If not, $errors would be empty.
if ( $errors == "")
# There were no errors. Move the file to /directory2.
system move $file "/directory2"
endif

done






Use a lot of double quotes in your script. For more info, check http://www.biterscripting.com . If you improvise on the script (in any scripting language), please post your script - it can help out lot of people.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.