C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -
i'm trying create application adheres following:
- no taskbar
- no console or form window
- can utilize
console.writeline()
. (i.e. if executes app command prompt write console.)
the problem if create windows form (or wpf) application can have there no taskbar, console or window show up, console.writeline() nothing. if create console app, writes console, can't figure out how hide (and if did hide it, write command prompt window?)...
how do this?
just create standard console application. callers responsibility hide window caused program (from how run c# console application console hidden ):
system.diagnostics.processstartinfo start = new system.diagnostics.processstartinfo(); start.filename = dir + @"\myprocesstostart.exe"; start.windowstyle = system.diagnostics.processwindowstyle.hidden;
Comments
Post a Comment