title: Question of call function in cmd batch file
body: <p>I have a question about the call function of cmd batch file.</p>
  <p>According to the source code below:</p>
  <p>If you I want to call a REDO/NORMAL function, when the function end, the question is it possible return to <strong>ECHO Copying File...</strong> to run and until to <strong>EXIT(0)</strong> to the end?</p>
  <p>Thanks.</p>
  <p><strong>Source Code</strong></p>
  <pre><code>@ECHO OFF
  
  ECHO Checking Network Connection...
  ECHO.
  TIMEOUT /T 1 /NOBREAK &gt; NUL
  
  PING -n 2 192.168.1.1 | FIND &quot;TTL&quot; &gt; NUL 
      
  IF errorlevel 1 (
      
      Powershell -noP -c &quot;Write-Host 'ERROR: Failure! Please Check Network Connection! Script Exit!' -BackgroundColor BLACK -ForegroundColor RED&quot;
      TIMEOUT /T 1 /NOBREAK &gt; NUL
      TIMEOUT /T 5
      EXIT(0)
      
  ) ELSE (
      
      Powershell -noP -c &quot;Write-Host 'INFO: Success! Network Connected!' -ForegroundColor GREEN&quot;
      TIMEOUT /T 2 /NOBREAK &gt; NUL 
  
  )
  
  
  FOR /F %%a IN ('Powershell -Nop -c &quot;Get-Date -Format 'HH:mm'&quot;') DO SET time=%%a
  
  IF %time% GTR 12:00 (
  
  GOTO REDO
      
  ) ELSE (
  
  GOTO NORMAL
  
  )
  
  ECHO Copying File...
  ECHO.
      
  TIMEOUT /T 1 /NOBREAK &gt; NUL
      
  COPY &quot;C:\temp\A.csv&quot; &quot;D:\temp\&quot;
  
  ECHO.
  ECHO Copy Completed!
  TIMEOUT /T 1 /NOBREAK &gt; NUL
      
  EXIT(0)
  
  :REDO
  ECHO THIS IS REDO FUNCTION
  
  :NORMAL
  ECHO THIS IS NORMAL FUNCTION
  </code></pre>