4

I want to run a console application on system start up without appearing it on display screen means i want to run a application as a background process.How to do this?

2

3 Answers 3

5

In short: The simplest way might be to schedule task to be started from your operating system. This might be the way easiest thing to set.

You may easily run it in the background with the scheduler - How to run a .Net Console App in the background

Sign up to request clarification or add additional context in comments.

Comments

3

You can change the output type in project properties as console Application type to Windows application type and compile it, Then it won't display any window at start up.

Comments

0

Try this to hide the console window and run in background

[DllImport("user32.dll")] private static extern int ShowWindow(int Handle, int showState); [DllImport("kernel32.dll")] public static extern int GetConsoleWindow(); public static void HideWindow() { int win = GetConsoleWindow(); ShowWindow(win, 0); } 

why dont you try windows service ? windows service runs the process in background.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.