Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

simple script to zip up a bunch of files

$
0
0

Using Win-7 Pro, x86-64 ...

This has got to be simpler than the solutions I've seen so far.

I have a directory with several dozen files.  I'd like to create a zip file backup of that directory on a regular basis.  I'd like to script that so that I can have the scheduler run it without my having to manually do anything (in fact, I'd plan on scheduling it to run on the weekend, when I'm not even in the office).   On my Linux boxes, it's a simple one-liner:

zip /my_backup_directory/myzipfile /my_source_directory/*
Everything I've found so far for doing this in Windows either requires some additional software (not part of the basic Windows installation), or several dozen lines of vbscript.  Surely I'm overlooking something simple.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>