Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果这个文件是空的,我想通过使用 windows .bat 文件删除一个特定的文件。这是我的非工作脚本:
if %~z1 == 0 echo %~z1=================== del "%1" goto :eof
if %~z1==0 ( echo %~z1=================== del "%1" ) goto :eof
goto如果您想在删除文件后转到文件末尾,则应将 放在括号内。正如我所说,在没有进一步信息的情况下,无论如何该批次都会终止。
goto