In addition to the other answers: if by some chance, your problem lies in the registry (for instance, as in @isanae's comment on the accepted answer), you can edit the registry offline either by booting to another install of your version of Windows, or by using a setup/WinPE environment CD.
In short, open up the registry editor in your alternate OS (from WinPE or a setup disc, you can press Ctrl+F10 to open up a command prompt, then enter "regedit"). From there, you can create a new node in the registry tree, then use File -> Load Hive to choose the corresponding files for offline registry editing as follows:
[HKEY_LOCAL_MACHINE\SYSTEM] (%windir%/system32/config/SYSTEM)
[HKEY_LOCAL_MACHINE\SOFTWARE] (%windir%/system32/config/SOFTWARE)
[HKEY_USERS.Default] (%windir%/system32/config/DEFAULT)
[HKEY_CURRENT_USER] (%userprofile%/ntuser.dat)
From here, you can make whatever edits you need (SOFTWARE\Microsoft\Windows\CurrentVersion\Run, for example, holds your startup programs), and then save/close the hive you opened back to the same file.
format C:ordel /S C:\as ways to remove the forkbomb from the Startup folder (note to beginners: do not try those commands, they'll remove everything else as well) – Mark K Cowan Aug 25 '15 at 08:16