import os
import time
source = [' d:\\Doc']
target_dir = ' d:\\test '
target = target_dir + os.sep + \
time.strftime('%Y%m%d%H%M%S') + ' .zip'
zip_command = 'zip -r {0} {1}'.format(target,
' '.join(source))
print('zip command is:')
print(zip_command)
print('go')
if os.system(zip_command) == 0:
print('s', target)
else:
print('bb')
import time
source = [' d:\\Doc']
target_dir = ' d:\\test '
target = target_dir + os.sep + \
time.strftime('%Y%m%d%H%M%S') + ' .zip'
zip_command = 'zip -r {0} {1}'.format(target,
' '.join(source))
print('zip command is:')
print(zip_command)
print('go')
if os.system(zip_command) == 0:
print('s', target)
else:
print('bb')
