Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
@ECHO OFF
::https://stackoverflow.com/questions/4340350/how-to-check-if-a-file-exists-from-inside-a-batch-file
::https://stackoverflow.com/questions/1788473/while-loop-in-batch

:SetTempFile
copy /y NUL %TEMP%\jobrunning.log >NUL
::EXIT /B

:file_exists
SET File="%TEMP%\jobrunning.log"
    if exist %File% (
        ECHO FILE EXISTS
        PAUSE
        goto :file_exists
    )
    PAUSE
  • No labels