如何检查是否存在带空格的目录或文件名
@echo off
if not exist "C:\"Documents and Settings"\box\putty\file"
(
echo hello
)
pause
错误:
'and' is not recognized as an internal or external command,
operable program or batch file.
hello
Press any key to continue . . .
如何检查是否存在带空格的目录或文件名
@echo off
if not exist "C:\"Documents and Settings"\box\putty\file"
(
echo hello
)
pause
错误:
'and' is not recognized as an internal or external command,
operable program or batch file.
hello
Press any key to continue . . .