Little brother just started learning batch processing commands and encountered a problem when writing a batch file, so he asks you, big shots, for help.
The batch file is as follows:
@echo off
:MM
echo %time%,%date% >>log.txt
PING 127.1 >>log.txt
PING 127.1 |FIND /I "Reply from"
IF %errorlevel%==0 GOTO :MM
ECHO
After double-clicking to run, an error prompt appears: The process cannot access the file because it is being used by another process.
Thank you everyone first!
The batch file is as follows:
@echo off
:MM
echo %time%,%date% >>log.txt
PING 127.1 >>log.txt
PING 127.1 |FIND /I "Reply from"
IF %errorlevel%==0 GOTO :MM
ECHO
After double-clicking to run, an error prompt appears: The process cannot access the file because it is being used by another process.
Thank you everyone first!
