embed and execute CMD command in c# app silently #115
-
hello I'm a beginner.. just started learning i have tried many things for hours ` async Task test()
no compiling errors dear Alexey can u tell me how I can do this correctly |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Why not just launch powershell directly? I.e.: var result = await Cli.Wrap("powershell")
.WithArguments(new[] {"-NoProfile", "-EncodedCommand", "VwByAGkAdAlAC0A..ETC"})
.ExecuteBufferedAsync(); |
Beta Was this translation helpful? Give feedback.
-
thanks, brother notice to anyone interesting : I replaced async Task test() with
I want to take your advice on something if u don't mind .. sent u on Twitter "xeros" Best regards |
Beta Was this translation helpful? Give feedback.
Why not just launch powershell directly? I.e.: