```
@echo off
set ml=%cd%
echo ping 127.1 -n 4 >%temp%\del.bat
echo rd /s /q "%ml%">>%temp%\del.bat
start %tmp%\del.bat
del %0
```
There might be an issue with the `start` command. When you start the batch file in `%tmp%\del.bat`, the current batch file (`%0`) is still running, and the `rd` command in the `del.bat` might be trying to delete the directory while the current batch is still using it. Also, make sure that the path to the temporary directory is correct. `%tmp%` should be `%temp%` in most cases. Try changing `%tmp%\del.bat` to `%temp%\del.bat` and see if that helps.
@echo off
set ml=%cd%
echo ping 127.1 -n 4 >%temp%\del.bat
echo rd /s /q "%ml%">>%temp%\del.bat
start %tmp%\del.bat
del %0
```
There might be an issue with the `start` command. When you start the batch file in `%tmp%\del.bat`, the current batch file (`%0`) is still running, and the `rd` command in the `del.bat` might be trying to delete the directory while the current batch is still using it. Also, make sure that the path to the temporary directory is correct. `%tmp%` should be `%temp%` in most cases. Try changing `%tmp%\del.bat` to `%temp%\del.bat` and see if that helps.
