我正在运行批处理文件,但如果 exist 总是返回 True ,为什么会这样?

问题描述 投票:0回答:0

我有这段代码,它总是返回 True 并且文件被移动。我的代码有什么问题? 我在 Windows 批处理文件上运行。

if exist H:\RCP\outbound\vendor\%%a\%text% (
   echo file will be moved
)  else (
   echo file does not exist
)

尝试了多个选项,包括 if - else 但不起作用

file if-statement batch-file file-exists not-exists
© www.soinside.com 2019 - 2024. All rights reserved.