Windows批处理:命令type

显示文本文件的内容。
TYPE [drive:][path]filename

@echo off
type test.txt
echo.
pause
echo *************************************
type %CD%\test.txt
echo.
pause
exit

执行结果:

winkle, twinkle, little star
How I wonder what you are
Up above the world so high
Like a diamond in the sky.

请按任意键继续. . .
*************************************
winkle, twinkle, little star
How I wonder what you are
Up above the world so high
Like a diamond in the sky.

请按任意键继续. . .

你可能感兴趣的:(Windows批处理技巧)