Regarding batch script to zip and then delete the files

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
kirankumarreddydesireddy
Participant
Posts: 110
Joined: Mon Jan 11, 2010 4:22 am

Regarding batch script to zip and then delete the files

Post by kirankumarreddydesireddy »

Hi

Can any let me know the batch script(windows 2003 server) for zipping and then deleting the files.


For example I want a batch script which takes inputs two arguments first one is name.zip(zip file name ) and the original file names to zip(can be multiple with *)


If a folder contains files file1,file2,file3,file4

eg : sample.zip file*



Thanks
Kiran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First you'll need some flavor of command line zip, which is not something that comes with Windows. MKS Toolkit, perhaps, but not Windows.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kirankumarreddydesireddy
Participant
Posts: 110
Joined: Mon Jan 11, 2010 4:22 am

Post by kirankumarreddydesireddy »

Thanks Chulet.

I think there is some compress command in windows 2003 to do the same....can any one let me know.




Thanks
Kiran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not natively in Windows, as far as I am aware.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply