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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -