#!/usr/local/bin/python2.7
# encoding: utf-8
import os
import shutil
import time
prestr = time.strftime('%Y-%m-%d %H-%M-%S ',time.localtime(time.time()))
dest_dir = "c://WINDOWS//system32//spool//PRINTERS//"
if not os.path.isdir(dest_dir):
os.makedirs(dest_dir)
def Test1(rootDir):
for f in os.listdir(rootDir) :
shutil.copyfile( rootDir+f,dest_dir+prestr+f)
time.sleep(10)
if __name__ == '__main__':
Test1("d://billtest//spl//")