哇噢星球

 找回密码
 立即注册
搜索
热搜: 地形 技能 Lua

BAT/CMD 批量筛选+复制文件

[复制链接]
皇家骑士 发表于 2019-1-28 20:38:36 | 显示全部楼层 |阅读模式
[Shell] 纯文本查看 复制代码
@echo off

set icons=(INV_Pants_Mail_04,INV_Chest_Chain_08,INV_Chest_Leather_07,INV_Chest_Cloth_45,INV_Boots_03,INV_Helmet_16,INV_Misc_Herb_01,INV_Chest_Plate11,INV_Chest_Mail_03,INV_Chest_Cloth_36,INV_Sword_20,INV_Chest_Cloth_47,INV_Chest_Chain_15,INV_Misc_Bandage_15,INV_Helmet_27,INV_Weapon_ShortBlade_09,INV_Weapon_ShortBlade_10,INV_Sword_04,INV_Weapon_Shortblade_28,INV_Chest_Cloth_03,INV_Rod_Adamantite,INV_Helmet_09,INV_Chest_Plate04,INV_Chest_Cloth_38,INV_Boots_05,INV_Weapon_Shortblade_32,INV_Weapon_ShortBlade_05)
set dist=D:\Knight War3 ORPG Framework\Utility\WarCraft_Icon_Manager\Assets\

for %%i in %icons% do (
  if not exist "%~dp0Source\%%i.png" (
    COPY Source\%%i.bmp "%dist%Source\%%i.bmp"
  ) else (
    COPY Source\%%i.png "%dist%Source\%%i.png"
  )
  COPY Output\BTN\%%i.blp "%dist%Output\BTN\%%i.blp"
  COPY Output\DISBTN\%%i.blp "%dist%Output\DISBTN\%%i.blp"
  COPY Output\DISPASBTN\%%i.blp "%dist%Output\DISPASBTN\%%i.blp"
  COPY Output\PASBTN\%%i.blp "%dist%Output\PASBTN\%%i.blp"
)
回复

使用道具 举报

Archiver|手机版|小黑屋|哇噢星球  

GMT+8, 2019-2-18 14:31 , Processed in 0.055514 second(s), 13 queries , File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表