Guest User

Untitled

a guest
Jul 7th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Create two files, startup.bat and startup.vbs 
  2.  
  3.  
  4.  
  5. Startup.bat
  6.  
  7.  
  8.  
  9. [CODE]@echo off
  10.  
  11. :1
  12.  
  13. "C:\Windows\RestartonCrash\RestartOnCrash.exe"
  14.  
  15. goto :1[/CODE]
  16.  
  17.  
  18. Startup.vbs
  19.  
  20.  
  21.  
  22. [CODE]Set WshShell = CreateObject("WScript.Shell" )
  23.  
  24. WshShell.Run chr(34) & "C:\Scripts\Startup.bat" & Chr(34), 0
  25.  
  26. Set WshShell = Nothing [/CODE]
  27.  
  28.  
  29.  
  30. Now create a scheduled task that runs when you login and use startup.vbs.  That will run silently in the background and silently run startup.bat, which runs 
  31.  
  32. @echo off
  33. :1
  34. "C:\Windows\RestartonCrash\RestartOnCrash.exe"
  35. goto :1
  36.  
  37.  
  38. That prevents StartuponCrash fron NOT being active.
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment