I have Executables in UNC Path mapped on my Local machine. How can I run the .exe within these Folders from my ASP.NET Core Web API? Can you help me on this ASAP, please
Thanks for the tutorial. I was able to run the exe but there is an indefinite wait for the process to complete, its like the until i end the process (like hit the stop button on vs) the process is not ending. Any clue how to timeout if the exe does not respond back ?
True. I hosted a .net 6 web app in Win server running IIS and from within a Page btnclik trying to run a bat file having script to run/open notepad.exe. The bat file is getting called but notepad is not opening...do we need to apply some setting in IIS...i m not sure.
I have Executables in UNC Path mapped on my Local machine.
How can I run the .exe within these Folders from my ASP.NET Core Web API?
Can you help me on this ASAP, please
Make sure you set workingDirectory to your UNC directory path. Just the path not the filename.
@@intcoder can you elaborate a bit please. I have already mentioned that these paths have been mapped to my local Machine. Working Directory??
@@DriveU836 @ 7:17 i explain what you need todo.
Thanks for the tutorial. I was able to run the exe but there is an indefinite wait for the process to complete, its like the until i end the process (like hit the stop button on vs) the process is not ending. Any clue how to timeout if the exe does not respond back ?
But will this work if hosted in IIS...I failed to do so
Yes it will work if hosted.
True. I hosted a .net 6 web app in Win server running IIS and from within a Page btnclik trying to run a bat file having script to run/open notepad.exe. The bat file is getting called but notepad is not opening...do we need to apply some setting in IIS...i m not sure.
@@saurovthakur4069 make sure to follow instructions on 6:08 by using the workingdirectory property to the correct location of the exe
@@intcoder Ah! yes, 'otherwise its not gonna work'...got it.. Thnx .. will attempt a retry.
Where I can find WebAPIConsole.exe on this project?
I tried but still not work..
It’s just an simple exe that writes to a file.
How to change the url and Port? Currently: 44386/api/test . But would like to have something like 44331/api/myCode
And idea?
You can change the port number by updating launchSetting.json file.
@@intcoder but the url is not possible?
you just have to create another controller with your "myCode" name myCodeController@@toby645pa
@@intcoder best thanks for your support, you're the best!!!
ASP.NET Web API Version
ua-cam.com/video/hOArQa6XD1w/v-deo.html