我猜这是一个基本的 DOS 问题,它与 del 命令有关。我只想删除一个文件。
C:\Documents and Settings\matthewe\Desktop\testfolder>del C:\Documents and Settings\matthewe\Desktop\testfolder\test.pdf The system cannot find the path specified.
我可以保证 test.pdf 存在,而且我能够 cd 到正确的文件夹这一事实表明它存在。那为什么会出错呢?
最佳答案
尽量把你的路径放在双引号内,DOS 不喜欢里面有空格的长路径:
del "C:\Documents and Settings\matthewe\Desktop\testfolder\test.pdf"
关于command-line - DEL 说路径不存在(它确实存在),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3932434/