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

 

 

相关文章:

  • 2021-06-26
  • 2021-07-18
  • 2021-10-18
  • 2022-12-23
  • 2021-05-17
  • 2021-11-26
  • 2021-05-15
猜你喜欢
  • 2021-11-24
  • 2021-09-04
  • 2022-12-23
  • 2021-08-08
  • 2021-11-13
  • 2021-08-14
  • 2021-07-04
相关资源
相似解决方案