Multiple CMD instances command passing

55 Views Asked by At

I'm using the Microsoft Robotics suit, to start an instance in DSS Command Prompt it targets the normal SysWOW64\cmd.exe with the parameters /K filepath\env.cmd

Then to start the service in the DSS Command Prompt it would be something like dsshost32 /p:50000 /t:50001 "/m:filepath.manifest.xml"

I'm trying to have it do both in one command, such as C:\Windows\SysWOW64\cmd.exe /K "filepath\env.cmd" & /K dsshost32 /p:50000 /t:50001 /m:"filepath\WebCam.manifest.xml" I'm not too familiar with CMD to know if it's even possible, doing multiple commands will not work as its a different CMD instance I believe.

Thank you for your time and any incite.

1

There are 1 best solutions below

0
Blayne On

I was miss placing the logic, C:\Windows\SysWOW64\cmd.exe /K "C:\Users\blkennedy\Documents\Man\env.cmd & dsshost32 /p:50000 /t:50001 /m:"C:\Users\blkennedy\Documents\Man\WebCam.manifest.xml" works, sorry for a useless question.