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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -