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).
 
Back
Top