When writing end-to-end MobiLink demonstration scripts using Windows command files, the following requirements seem to be in conflict:
Everything's cool with dbsrv12, but not so much with mlsrv12 and dbmlsync.
I am reluctant to explore "creating Windows services for everything"... trying to keep things simple, it's a demo after all :)
Tasklist and tskill are Windows commands, apparently... and tskill mlsrv12 seems to work. Who knew? ( apparently not me :)
OK, this is getting frightening: http://technet.microsoft.com/en-us/library/cc725602%28WS.10%29.aspx# ...I have work to do, I can't be reading about fifty zillion DOS commands I didn't know existed... :)
For mlsrv12, the dbstop equivalent is mlstop. There isn't a dbspawn equivalent that starts the server and waits till the server is ready to accept connections. However you can use mlreplay -ping after starting an ML server to wait till the ML server is ready.
There isn't a stop command line program for dbmlsync, but you can start it with -k to have it close after synchronizing. For demo purposes it should be okay to use taskkill. Note that if you use the dbmlsync API the StartServer method is like dbspawn and the ShutdownServer method is like dbstop.