how to get this working if exist tasklist=="notepad %DATE%.txt" [closed]
- by blade19899
@echo off
title Log file creator
if exist "%CD%\%DATE%.txt" (msg * "the log of today(%DATE%.txt) Has already been made" goto :notepad) else (goto :start)
goto :eof
:start
echo %date%>>"%date%".txt
echo %username% >>"%date%".txt
echo.>>"%date%".txt
echo.>>"%date%".txt
echo…