在 windows cmd 中,临时目录设置为
C:\spec>echo %temp%
C:\Users\mahmood\AppData\Local\Temp
还有一个文件 %temp%\specdev.txt 包含
C:\spec>type %temp%\specdev.txt
c:\cpu
现在当我执行这个命令
findstr -r "^[a-zA-Z]:$" %temp%\specdev.txt >nul 2>&1
它不返回任何东西!
C:\spec>findstr -r "^[a-zA-Z]:$" %temp%\specdev.txt >nul 2>&1
C:\spec>
问题是什么??你能解释一下这个命令是做什么的吗?它是批处理脚本的一部分。