vs2015生成后事件调用python脚本和xcopy用法

1、调用python脚本

vs2015生成后事件调用python脚本和xcopy用法

copy.py脚本内容:

#找到指定目录目录下的文件
dst_dir = os.path.dirname(__file__)   # 获取当前文件目录
src_dir = dst_dir + "/test/test.dll"

file_name = dst_dir + "\test.dll"

BeePlatform_Exist = os.path.exists(file_name)
if BeePlatform_Exist:
        os.remove(file_name) 

shutil.copy(src_dir, dst_dir)

2、xcopy用法

xcopy /Y /F /S  src_path   dst_path