我正在尋找一批查看以“@”開頭的檔案夾,然后在這些檔案夾中有一個名為“Keys”的子檔案夾,將 file.bikey 復制到一個名為“keys”的靜態檔案夾中。
由于里面的 cd/goto 命令,我使用的 for /d 回圈顯然停止作業。
Main
│ key-collector.bat
│
├───@folder_a
│ └───keys
│ a.txt
│
├───@folder_b
│ └───keys
│ b.txt
│
├───@folder_c
│ └───keys
│ c.txt
└───keys
└───(Destination)
當前代碼:
@echo off
:start
set modsPath="C:\Exemple"
set keysPath="%modsPath%\keys"
for /d %%i in (@*) do (
echo %%i
copy /y
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/344597.html
下一篇:批處理檔案中的反向換行
