I want a simple batch file that will kill a process and then restart that same process.
right now i'm doing it via 'services' window but i want it via a batch file.
i'm testing this with notepad.exe before moving forward with an actual service. not sure if coding would be diff with a service versus an application.
but for my notepad test i have
TASKKILL /F /IM "notepad.exe"
this kills notepad, but then how do i reopen a new notepad? and would these steps be same for a service?