Question : Auto zip files of a certain extension

HI,
I have run in to an issue with a script that was created on the exchange a while back.  THe script is supposed to zip, and then delte files with extension .igs and .stl.  The problem is the script bangs out if it comes across a a .zip file that already exists with the same name.  How do I force it to ignore and move on to the next file?

See previous solution:
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_23911898.html


Regards
Lachlan

Answer : Auto zip files of a certain extension

One of these things is not like the other.

LCase(Right(objFile2.Name, 4)) = ".igs"
LCase(Right(objFile2.Name, 4)) = ".stl"  
LCase(Right(objFile.Name, 4)) = ".stp"
 
One of these things just doesn't belong.
1:
2:
       If LCase(Right(objFile2.Name, 4)) = ".igs" Or LCase(Right(objFile2.Name, 4)) = ".stl"  Or LCase(Right(objFile2.Name, 4)) = ".stp" Then
 
Open in New Window Select All
Random Solutions  
 
programming4us programming4us