Can someone explain to me why this program isnt working? i.e. I always get 'backup failed'? This is a program from byte of python tutorial and im using windows xp.
import os, time source = ['d:\\python'] target_directory = 'd:\\python1' target = target_directory + time.strftime('%Y%m%d_%H%M%S') + '.zip' zip_command = "zip -qr '%s' %s" % (target, ' '.join(source)) print zip_command if os.system(zip_command) == 0: print 'Successful backup to', target else: print 'Backup FAILED'
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor