Command Prompt Calling and Parsing
-
Hey People how are you? I've got an ASP.NET (Built in VB.NET) web system and I need to talk to a program called IBM MQ. IBM MQ is sort of like BizTalk but I've been unable to find anyone that has been able to find out how to talk to MQ directly. To talk to MQ in general you can do it through the DOS Command Prompt by typing in commands and that works really well. My problem is that I don't know how to get my VB.NET web system to talk to Command Prompt and pass it arguments that I'll use to talk to MQ. If anyone has any code for opening and passing arguments into a command prompt that would be very much appreciated. Thank you very much in advance. Michael :)
-
Hey People how are you? I've got an ASP.NET (Built in VB.NET) web system and I need to talk to a program called IBM MQ. IBM MQ is sort of like BizTalk but I've been unable to find anyone that has been able to find out how to talk to MQ directly. To talk to MQ in general you can do it through the DOS Command Prompt by typing in commands and that works really well. My problem is that I don't know how to get my VB.NET web system to talk to Command Prompt and pass it arguments that I'll use to talk to MQ. If anyone has any code for opening and passing arguments into a command prompt that would be very much appreciated. Thank you very much in advance. Michael :)
Michael101 wrote:
My problem is that I don't know how to get my VB.NET web system to talk to Command Prompt and pass it arguments that I'll use to talk to MQ.
Write a .bat file which contains all your command to be executed. Use
Process.Start()
to execute this .bat file. But doing this through ASP.NET doesn't make any sense, also bat file will be executing on server, not client machine.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions