判断文件是否存在 dir upcn.bat>a.txt&&type a.txt|find "upcn.bat"&&echo 文件找到 因为&&是前面的命令执行成功才执行后面的命令,所以可以作为间接的IF语句使用