exe - C# content folder path -
i have simple c# application must run console application 1 step. i've seen few posts on including executables embedded resources , running them through memory streams doesn't easiest way.
i'm thinking better copy .exe content folder , run ol' process.start there.
the question is, how find content folder application?
i can done way, seems roundabout:
//run executable streamresourceinfo info = application.getcontentstream(new uri("myapp.exe", urikind.relative)); string appname = (info.stream filestream).name;
any tips?
path.getdirectoryname(application.executablepath);
then can use path.combine go contents subdirectory or whatever directory other app in.
Comments
Post a Comment