python 备份文件
来源:互联网 发布:利用mysql 入侵linux 编辑:程序博客网 时间:2024/05/28 03:02
# -*- coding: utf-8 -*-
import os
import time
source = ['D://vooyo//prj//WVM']
target_dir = 'H://'
for i in source:
print 'dir = ',i
target = target_dir +'wvm'+time.strftime('%Y%m%d%H%M%s') + '.zip'
zip_command = "rar a %s %s" % ( target, ' '.join(source) )
print zip_command
if os.system(zip_command) == 0:
print '备份成功'
else :
print os.system(zip_command)
print '备份失败'
- python 备份文件
- python备份文件
- python备份文件
- Python备份文件
- Python 备份文件
- Python 实例: 备份文件
- python备份文件2
- python 备份文件脚本
- Python备份文件脚本
- 备份文件的python脚本
- python <2> 压缩备份文件
- 用python脚本定期备份文件
- 第一个python程序:备份文件
- 编写Python脚本来备份文件
- Python小脚本 001 备份文件
- python 备份文件的小脚本
- 备份文件
- 使用python解析火狐的书签备份文件
- 一个好的产品注定源于生活!
- 娃娃鸭深入核心VCL架构剖析(李维)笔记
- 字符串函数
- 娃娃鸭深入核心VCL架构剖析(李维)笔记
- 树形结构表怎么用水晶报表来实现呢?
- python 备份文件
- postgresql 中的|| 及''
- GetSystemMetrics函数参数nIndex的定义
- 娃娃鸭深入核心VCL架构剖析(李维)笔记
- 关于ShellExecute
- 娃娃鸭深入核心VCL架构剖析(李维)笔记
- 用CHttpFile实现简单的GET/POST数据
- 无法识别的配置节"xhtmlConformance"
- 笔记,零散的东西