I have developed a application that is running on computer A. I have a computer B with a running version of visual studio (where I designed the application).
What I got is, when I built my application on computer B, it deploys it to computer A (by a shared network folder.
now, the thing I want now is using the pre-built
and post-built
commands in visual studio to call a batchfile. The pre-built command batchfile needs to kill the application (if it is running) on the remote computer (computer A) i think this can be dont by processid, or processname. The post-built command batch file needs to start the "fresly" built app on the remote computer. but I dont't really know where to start,
How do i accomplish something like this?
You can achieve this using PsTools.
PsKill and PsExec, respectively, are the tools you are looking for.