Link to home
Start Free TrialLog in
Avatar of DivOph
DivOphFlag for United States of America

asked on

OLD TECH - PKZIP Only Zips 7 Files

I have a BATCH File in a Scheduled task that simply uses PKZIP to zip a directory. The Directory was moved form a Novell Server to a WIndows 2012 server. It runs but there are only 7 of the 345 files in the archive ZIP.
The Task is on an XP machine. When I run the PKZIP manually it does the same thing. I have another XP machine that does not have an issue.  Cant find what might be different.
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

First guess would be permissions.  Does the user under whose credentials the batch runs have permissions to all the source files?
Avatar of DivOph

ASKER

Yes. All permissions are exactly the same. I have tested on other XP Machines as well with same result. the ZIP will have the first 7 files. I have only one magical XP machine that does it correctly
Are your sure the pkzip you have is a full or right version and it's working right? Did you test it on a local drive. It may not be working through the network. I had an issue years ago with pkzip not working across the LAN and I had the wrong version.
Is it zipping short DOS names or long Windows names?
Avatar of DivOph

ASKER

PKZIP works on the local drive. It is a free version.
All the file names are short DOS names 8.3
You need PKzip for windows.
Do a dir on the folder concerned.

See if the first 7 files are the ones that are in the zip file.  (This is my guess).

If it is then the zip util think that there is no more.  (Again, a guess).

Try temporarily moving the eighth file out of the folder and try the zip again (Experiment to see if the 8th file is causing the zip to fail).
Avatar of DivOph

ASKER

I had tested this and you are correct . . .  the ZIP has the first 7 and if I remove 1 from the beginning and run again it does add the 8th file (now 7th) and the archive has all 8
Avatar of DivOph

ASKER

the 8th file doe not fail
Hmmm.

Still only handling seven files though.  And it is handling the eighth file which I thought it might not.  Hair pulling.

Review:  The files are on a server and the tasks are being called from two XP machines.  The zip util and batch file are local on the XP machines.  Have I got it correct?

And which version of pkzip 2.04 or 2.5?
And the contents of the batch file, I'm looking for the command syntax?
And how long is the path to the folder concerned?
Avatar of DivOph

ASKER

Files are on a server and Zip and Batch (and I have even tried running direct from command prompt) ar on local XP machines

pkzip -u test l:\TRXXXX\XXXXXXXX\ZIP\*.*

2.04
ASKER CERTIFIED SOLUTION
Avatar of jmac44
jmac44
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Suggestions

Check date and time on all machines and that they are correct and in the correct format for the country.

Try the -f instead of the -u option on the machine that is playing up and see if it pulls everything across.  -f is freshen
@DivOph - Did you try a version other than v2.04? You can't use long files names with that version. You need v2.50 or higher.
It's the holidays maybe DivOph is busy.