參考網站寫的相當詳細阿~
強烈建議連過去看看!!

參考網站

註記:
. 是萬用字元
* 是重複字元

:: 將 dir 結果存到 temp.txt
dir /b > temp.txt
:: 印出所有找到的字串
for /f "tokens=*" %%i in ('FINDSTR "abc" temp.txt') do (
    echo %%i
)
arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()