1

I'm trying to write an exe that runs with out any window how cat I do that? How can I run/write an exe that will not open any window?

(A code example can be very useful).

Thank you very much!

whiteberryapps
  • 1,392
  • 4
  • 16
  • 21

1 Answers1

-4

You'll find a lot on google, for example https://superuser.com/questions/198525/how-can-i-execute-a-windows-command-line-in-background

So to answer this shortly, just use the windows command "start" with the parameter B (-> background i suppose). So write your program and create a small .bat file which includes just

start /B <your program>
Community
  • 1
  • 1
ju.kreber
  • 43
  • 5
  • You can also open a program subfolder and create a "shortcut" with the command line you need. – rcgldr Apr 18 '14 at 22:26
  • 1
    This answers a different question than the one asked. – nobody Apr 18 '14 at 22:31
  • 1
    Why does thes answer a different question? If you write a simple program w/o GUI (Cli /winapi stuff) it will always need to be run inside a console. So why should windows know to start it "silent" if you don't tell it? If it should run as a service or autostart, there are other possibilities, of course.. – ju.kreber Apr 18 '14 at 22:56
  • If you link your program as a GUI application, it doesn't need to run in a console, and it doesn't need to present a GUI either. – Harry Johnston Apr 18 '14 at 23:28