windows下的批处理程序----拷贝文件

:使得后台运行
@echo off
if "%~1"=="" mshta vbscript:createobject("wscript.shell").run(""%0" 0",0)(close)&&exit 
:begin


:设置源文件路径名
set SrcFile_libdrv_api_so="L:\AWARE\product\A8Dev\cn71xx\drv_src\build\mips\usr_src\obj\libdrv_api.so"
set SrcFile_comm_ko="L:\AWARE\product\A8Dev\cn71xx\drv_src\build\mips\kernel\drivers\kernel_src\comm.ko"
set SrcFile_cpld_ko="L:\AWARE\product\A8Dev\cn71xx\drv_src\build\mips\kernel\drivers\kernel_src\cpld.ko"
set SrcFile_t_drv_api_test="L:\AWARE\product\A8Dev\cn71xx\test\t_drv_api.test"
set SrcFile_u_boot_octeon_vs_a8_bin="L:\AWARE\product\A8Dev\cn71xx\image\vs01a8mpu\u-boot-octeon_vs_a8.bin"


:set SrcFile_libdrv_api_so="K:\MGMT_AWARE\AWARE\product\A8Dev\cn71xx\drv_src\build\mips\usr_src\obj\libdrv_api.so"
:set SrcFile_comm_ko="K:\MGMT_AWARE\AWARE\product\A8Dev\cn71xx\drv_src\build\mips\kernel\drivers\kernel_src\comm.ko"
:set SrcFile_cpld_ko="K:\MGMT_AWARE\AWARE\product\A8Dev\cn71xx\drv_src\build\mips\kernel\drivers\kernel_src\cpld.ko"
:set SrcFile_t_drv_api_test="K:\MGMT_AWARE\AWARE\product\A8Dev\cn71xx\test\t_drv_api.test"
:set SrcFile_VO_Board_bin="E:\stm32source\VO_Board\VO_Board\MDK\Obj\VO_Board.bin"
set SrcFile_fan_bin="E:\stm32source\FAN_Board\FAN_Board\MDK\Obj\fan.bin"
set SrcFile_power_bin="E:\stm32source\PWR_Board\PWR_Board\MDK\Obj\power.bin"
set SrcFile_uImage="L:\AWARE\product\imageall\vs01a8mpu\uImage"
set SrcFile_vsa8_bin="L:\AWARE\product\imageall\vs01a8mpu\vsa8.bin"


:设置目标文件夹路径名
set DstDir="E:\tftpd32"


:拷贝文件命令
:xcopy %SrcFile_libdrv_api_so% %DstDir% /Y
:xcopy %SrcFile_comm_ko% %DstDir% /Y
xcopy %SrcFile_cpld_ko% %DstDir% /Y
xcopy %SrcFile_t_drv_api_test% %DstDir% /Y
:xcopy %SrcFile_VO_Board_bin% %DstDir% /Y
:xcopy %SrcFile_fan_bin% %DstDir% /Y
:xcopy %SrcFile_power_bin% %DstDir% /Y
:xcopy %SrcFile_u_boot_octeon_vs_a8_bin% %DstDir% /Y
:xcopy %SrcFile_uImage% %DstDir% /Y
:xcopy %SrcFile_vsa8_bin% %DstDir% /Y




:pause
展开阅读全文

没有更多推荐了,返回首页