I want to send email after the task completed. one email task started and one after finish like task completed
@x-wiki12526 ай бұрын
You can add a script block to send an email as soon as execution of script starts and a script block at the end of your script to send the execution details over email. Configuring an email trigger at the start/end of a task is not impossible but very difficult. Usually if you test the execution of task scheduler, there is no need to trigger an email for task scheduler, rather actual start/end of script is more important.
at the starting it is sending mail but after taking bkp success one email no receiving terminal got close after bkp @echo off REM Start REM Generate a timestamp for the log filename REM Format: YYYYMMDDHHMMSS for /f "tokens=2-4 delims=/ " %%a in ('date /t') do set datestamp=%%c%%a%%b for /f "tokens=1-4 delims=:. " %%a in ('echo %time%') do ( set hour=%%a set minute=%%b set second=%%c set period=%%d ) REM Handle 12-hour clock and remove spaces if "%period%"=="PM" if "%hour%" NEQ "12" set /a hour=hour+12 if "%period%"=="AM" if "%hour%"=="12" set hour=00 if %hour% LSS 10 set hour=0%hour% set timestamp=%hour%%minute%%second% set LOGFILENAME=backupLog-%datestamp%-%timestamp%.log set LOGFILE=C:\backupLog\%LOGFILENAME% echo Backup process started... powershell -ExecutionPolicy Bypass -File "C:\send_email.ps1" -backupStatus "start" REM Execute the backup process "C:\Program Files\ArcGIS\Portal\tools\webgisdr\webgisdr.bat" --export --file "C:\Program Files\ArcGIS\Portal\tools\webgisdr\webgisdr-working.properties" > "%LOGFILE%" 2>&1 powershell -ExecutionPolicy Bypass -File "C:\send_email.ps1" -backupStatus "success" -logFile "%LOGFILE%" pause
@roypena53093 жыл бұрын
you should re record this... i cant hear you... Volume is at %100