Skip to content

Instantly share code, notes, and snippets.

@osteotek
Created June 6, 2013 04:54
Show Gist options
  • Save osteotek/5719392 to your computer and use it in GitHub Desktop.
Save osteotek/5719392 to your computer and use it in GitHub Desktop.
cls
@echo off
title Postgres2Mysql Check Activitiy
echo Find process
echo.
tasklist | find "Postgres2Mysql.exe"
if errorlevel 1 goto NotRun
echo.
echo Datasnap Server is restarting
taskkill /f /im Postgres2Mysql.exe
start C:\Postgres2Mysql\Postgres2Mysql.exe
goto Done
:NotRun
echo Datasnap Server is not running
echo Starting Datasnap Server
start C:\Postgres2Mysql\Postgres2Mysql.exe
:Done
echo.
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment