c# - Executing a PowerShell script and leaving it running -


i have powershell script that, once executed listens on port. want execute script , leave running while c# program continues run.

here have right when gets line waits until script finished (which never does).

process proc = process.start("powershell.exe", @"/k tcdrvrcunit.exe automation.txt"); proc.waitforexit(); console.writeline(proc.processname); 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -