NUL on WindowsSometimes, due to a bug, files with reserved names like NUL, CON, PRN, AUX, COM1–COM9, or LPT1–LPT9 may appear and cannot be deleted normally.
These names are reserved by Windows for devices, so normal delete operations fail. It is usually caused by a software bug, archive extraction, or script error — not a virus.
The nul file can be created by Windows batch scripts that use lowercase >nul for output redirection. Under certain conditions (crashes, wrong working directory, Unicode path issues), Windows may create a file named nul instead of redirecting to the NUL device.
All batch scripts now include:
>nul to >NUL (more reliable on Windows)nul file on startupcleanup_nul.bat if the file appearsThe fix was applied to:
setup.bat (lines 5, 10, 108)run.bat (line 6)run_api.bat (line 6)health-dashboard.bat (line 6)Open Command Prompt as Administrator:
del "\\?\C:\Path\To\Folder\NUL"
ren "\\?\C:\Path\To\Folder\NUL" temp.txt
del "\\?\C:\Path\To\Folder\temp.txt"
rm /mnt/c/Path/To/Folder/NUL
Tip: Always use the full path with \\?\ to handle reserved filenames.