开发者

Start external process several times simultaneously

I need to start an external process (which is around 300MB large on its own) several times using System.Diagnostics.Process.

The only problem is: once the first instance starts, it generates temporary data in its base folder (where the application is located), so I can't just start another instance - it would corrupt the data of the first one and mess up everything.

I thought about temporarily copying the whole application folder programmatically, so that each instance has its own, but that doesn't feel right.

开发者_Go百科

Could anybody help me out? Thanks in advance!


Try starting each copy in a different directory.

If the third-party app ignores the current directory, you could make a symlink to it in a different folder. I'm not necessarily recommending that, though.


Pass an argument to your external process that specifies the temp folder to use.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜