https://bugs.winehq.org/show_bug.cgi?id=55151
axis6404@proton.me changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|WORKSFORME |--- Status|RESOLVED |UNCONFIRMED
--- Comment #2 from axis6404@proton.me --- I checked with wine9.12 and the bug has not been fixed yet.
Notice the wineserver process. It will increase memory usage. If you run selfdel.bat in a terminal, the memory increase will be slower. doaxvv (DEAD OR ALIVE Xtreme Venus Vacation) increases memory quickly and dramatically. This is because it is not run in a terminal. Try searching for koeiuc.bat in qps or something while running doaxvv's Koei update (which happens every week).
The original MS Windows does not have the infinite loop, because "del selfdel.bat" succeeds once. The cmd.exe in wine9.12 keeps selfdel.bat open with ReadFile() and executes it. Therefore, selfdel.bat is file-locked all the way until it exits. The original MS cmd.exe does not file lock. I've heard rumors that it stores the script's execution position as a cursor with a numerical value, and each execution opens the file, reads it, closes it, executes it, opens the file, reads it, closes it, executes it, opens the file... (infinite loop)
Translated with DeepL.com (free version)