@echo on
setlocal EnableExtensions DisableDelayedExpansion
@cd /d "%~dp0"
( echo open ftp.xxxxxxxx.com
echo kaxxxxx
echo kaxxxxx
echo ascii
echo cd "dir1/TUN/"
echo mdelete *.txt
echo cd -
echo cd "dir2/TUN2/"
echo mdelete *.txt
echo bye
)> %temp%\ftpdel.dat
ftp -i -s:%temp%/ftpdel.dat
del /f /s /q %temp%\ftprecive.dat >nul 2>nul
暂停
我试图删除这两个目录的所有*.txt
文件,但是脚本说我无法更改为"dir2/TUN2/"
怎么了?