Without knowing exactly what b.exe is, it is hard to suggest the proper strategy here.
But that said, when a remote server reboots, RDP will obviously always disconnect. There is nothing you can do, and given that boot times are different, there is no easy way to automatically reconnect after the connection is ready again.
That said, it is usually not the ...
RDP will not login automatically just because the server on the other side
has rebooted. The most you can do is write a script that you can run
on your side to do the logon, so as to make it easier to start the
You may save in RDP the connection details to a .rdp file,
specifying fully the parameters for the connection, window size,