COMMAND(Batch) tricks
Find all file(directory) including sub dir.
dir "dirname" /A:D /S /B
Find all sub dir + remove dir
FOR /f "tokens=*" %a in ('dir *.delete /A:D /B /S') DO RMDIR /S /Q %a
Find *.cpp and *.h
dir /s /b *.cpp;*.h
find trace*.cpp
dir /s /b trace*.cpp
find text “Trace” in *.cpp + *.h
dir /s /b *.cpp;*.h | find "Trace"
Written with StackEdit.
댓글 없음:
댓글 쓰기