Batch File Compression

  • Thread starter Thread starter Dennis Warner
  • Start date Start date
D

Dennis Warner

I need to periodically compress thousands of data files.
Is there any way I can do this with a single command;
preferably something that can be invoked by the task
scheduler? Is there a dos command for such?

Thanks
 
You dom't say how you intend to compress them. Therefore all I can say is look at the nitty-gritty detail of the For command.

for %A in (*.*) do pkzip <whatever the parameters are> %A

Note %A in a command line or %%A in a batch file. The A part IS case sensitive (rare in MS operating systems).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top