How to load my program when Windows starts without a command console appears?
Solution 1:
Mainly, you need to add your .exe or the method used to start the exe to your autorun registry key(to make your Windows start the program automatically):
You could use your Windows Task Scheduler. Just type scheduler on your Windows search, open the Windows Task Scheduler and create a task with the "start with Windows" trigger to start your exe with Windows.
You could just add your executable command to the Windows Registry autorun key:
Launch the Registry Editor. This can be done by selecting the "Run" command from the "Start" menu in Windows, then typing "Regedit" into the text box and tapping the "Enter" key. You may also simply type "Regedit" from a CMD or command prompt.
Open the Local Machine hive. The Registry Editor is arranged hierarchically, like the directory structure you see in the File Manager. At the top-most level there are five sections. Clicking the "+" sign next to "HKEY_LOCAL_MACHINE" will expand, or open up, that hive.
Navigate to the "Run" branch. Clicking the "+" sign next to each item in turn, open up "Software" > "Microsoft" > "Windows." Inside the Windows branch open "CurrentVersion" followed by "Run."
Preserve the current settings. Right-click on the word "Run" in the left panel of the Registry Editor and select "Export." Ensure the registry path at the bottom is accurate and ends in "\Run." Select the radio button marked "Selected branch" at the bottom-left of the export window. Take note of where you saved this file.
Add, remove, or alter entries as you see fit. Beware that many ordinary and necessary programs are listed here, blended in with programs you may not need and may not have known you were running.
When you have made your changes, choose "Save" from the "File" menu at the top-left of the Registry Editor. Quit the Registry Editor and reboot your system.
But if you "want the user to see anything after the Windows logo screen", I can see two main ways:
- Use HSTART Software with the "NOCONSOLE" argument:
- As described on another reference here on superuser, you could just add the folowing command to the registry autostart key to start it silently:
start "" "C:\Your_Program_Path\Your_Program.exe"
Solution 2:
Search the "Startup" folder then put your program in it. Any program in this folder will start when you start Windows.