I want to run CMD from vb.net and then run a curl command with it. I have followed the options in this question How to run DOS/CMD/Command Prompt commands from VB.NET? already but it doesn't work for me.
I am running this command via vb.net.
Process.Start("cmd /k", "curl --location --request GET http://ipaddress:port/")
The expected output should be Hello-World. But I get an error that "
System can not find the file specified.
However when I am running the same command in CMD then it works fine. Is there any way to make it work?
I have seen the other methods like httpwebrequest and already tried them and it works but I do not want to use those methods as I have many other complex curl commands and do not want to convert them to lengthy httprequests.
Please guide me with the explained problem.
Thank you in advance.
Best Regards