Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can we programmaticaly divert our boot process to DOS instead of Windows Desktop and execute our c# console application consecutively without stopping on DOS prompt. And the Operating System is Windows XP or Windows 7.0.
Posted
Updated 6-Apr-11 21:34pm
v2
Comments
Kim Togo 7-Apr-11 3:51am    
DOS does not exist any more on Windows XP, Windows Vista and Windows 7. When you run "CMD" it is a Command Prompt, not DOS.
sk saini 7-Apr-11 4:01am    
OK, but how to reach command prompt directly without booting to window and execute our code.
Sergey Alexandrovich Kryukov 7-Apr-11 4:46am    
It's not OK.
You're booting to Windows anyway. There is no non-Windows anymore.
--SA
Toli Cuturicu 7-Apr-11 11:00am    
Non-sense, imposibility, absurdity...
How old are you? Fifty?
This could only be done on Windows 98 or earlier!

1 solution

Take a look at registry setting:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

And the key "Shell" - Shell tells Windows what to start when login process is done.


One way, it to configure "Auto login" on Windows, and then have CMD startup when login process is completed.
 
Share this answer
 
v2
Comments
sk saini 7-Apr-11 3:59am    
It Should reach to command prompt as we do by selecting "Boot from Command prompt" option while booting.
sk saini 7-Apr-11 4:03am    
It Should reach to command prompt as we do by selecting "Boot from Command prompt" option while booting.
Sergey Alexandrovich Kryukov 7-Apr-11 4:48am    
CMD.exe is not a command prompt, this is just one of the application. It runs on Windows, not the other way around.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900