Huh? Why would you even say this? There's no MS-DOS code in Windows 95, and you couldn't exit Windows 95 to a command prompt. Are you just trying to throw some FUD into this conversation?
https://guidebookgallery.org/pics/gui/startupshutdown/shutdo...
1. Reboot the computer in DOS mode.
2. Change to Windows directory.
3. Delete the .pwl file for a user.
4. Reboot back into Windows 95.
5. Enter a new password in what was once a login screen asking for the old one.
Simpler times for hackers back then. :)