Jump to content

Auto-starting a .bat in Safe Mode


Recommended Posts

I have been working on a batch file that does various spyware scans (I found a great script on Anandtech and modified it and added quite a bit of stuff to suite my needs), and I'd love to be able to have it start automatically when it goes into safe mode. How on earth would I do this?

Thanks guys!

Jon

Link to comment
Share on other sites


2 ways:

1 - Have script check for presence of this key, it's ONLy created when you boot into safe mode, it's deleted when you reboot.

HKLM\System\CCS\Safeboot\Option\optionvalue=1

2 - Modify C:\WINDOWS\Web\safemode.htt , which is what you see on your desktop when you boot into safe mode. This is what causes you to get that prompt when you boot into safe mode.

-gosh

Link to comment
Share on other sites

2 ways:

1 - Have script check for presence of this key, it's ONLy created when you boot into safe mode, it's deleted when you reboot.

HKLM\System\CCS\Safeboot\Option\optionvalue=1

2 - Modify C:\WINDOWS\Web\safemode.htt , which is what you see on your desktop when you boot into safe mode. This is what causes you to get that prompt when you boot into safe mode.

-gosh

Brilliant as always Gosh, thanks very much!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...