Re: BAT file to re-start in Safe Mode...?



On Fri, 26 Sep 2008 09:07:42 -0400, Kenneth
<usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

On Fri, 26 Sep 2008 14:59:42 +0200, "Pegasus \(MVP\)"
<I.can@xxxxxxxxxx> wrote:

Hi again,

I entered the appropriate shutdown switches, and not the
shortcut causes the reboot into safe mode with networking.

Unfortunately, running it a second time leaves it in safe
mode, but before asking anything about that issue, I have
another question:

I had hoped to do all this because I have a BAT file that
invokes a process that often fails when run in normal mode.
If running in safe mode, it always runs properly.

I wanted to create a routine that would boot into safe mode,
run my BAT file, and when it finished, would re-boot back
into normal mode.

In all this, I had neglected the fact that when I enter safe
mode, I have to log in again, and have to enter my password.

Am I correct that there is no way that I could "bypass" that
part of the process? That is, am I correct that even if I
get this working correctly, I will still have to enter that
password manually?

Please let me know, and that will help me to decide if I
should pursue this further.

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."

It is possible to fully automate the logon process and to force a specific
process to run after the automatic logon process, either unconditionally or
conditional upon the current mode (Safe Mode / Normal Mode).


Hi Pegasus,

Thanks for that info...

I will pursue this further, and very much appreciate all
your kind help.

All the best,

Hi again,

I remain perplexed, and despite some help from folks in a
batch file group, can't get the routine to work properly.

If I launch the desktop shortcut, the system reboots into
Safe Mode with Networking as I wanted.

But then, if I reboot, it boots again into Safe Mode with
Networking.

If, instead of rebooting, I first run myboot.bat manually,
then when I do reboot, the system boots into Normal Mode.

So, it appears that either myboot.bat is not running when
the system boots, (even though is displays in Scheduled
Tasks as "run at system startup,") or, it does run at boot,
but finds "Safe" to be true, and so keeps the system in Safe
Mode.

Here is the current myboot.bat:

@echo off
if /i "%1"=="Safe" (
attrib -r -a -s -h c:\boot.ini
copy /y c:\boot.SAFE c:\boot.ini
shutdown -r -t 00
) else (
attrib -r -a -s -h c:\boot.ini
copy /y c:\boot.NORM c:\boot.ini
)


Can you spot the problem?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."
.



Relevant Pages

  • Re: double xp trouble
    ... I reboot, the initial windows xp logo comes up with the blue bars underneath then it goes blank. ... Try booting into Safe Mode ). ... If it boots, exit and reboot again. ... If it hangs again, boot into Safe Mode and use System Restore to a date prior to your problem. ...
    (microsoft.public.windowsxp.general)
  • Re: Deleting programs in memory?
    ... reboot into Safe mode - as PC boots, press F8 about twice per second. ... you can Msconfig to kill those apps. ...
    (microsoft.public.windowsxp.general)
  • Re: Massive problem with Windows 2000 and my computer
    ... Reboot your system when ... After doing so, download ... > I went into safe mode and removed all of the "Windows Hot ... presumably because I touched the windows updates. ...
    (microsoft.public.win2000.general)
  • Re: Inadvertant reboots
    ... I ran antivirus adaware and spybot. ... Antivirus would not run safe mode. ... to change the transparancy setting or zoom the map and bam reboot. ... Choosing recovery actions if Windows stops unexpectedly. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows XP hangs at (start-up) Logo, but will start in safe mo
    ... More than likely it is a driver problem. ... Reboot under Normal. ... Session after reboot into Safe Mode prior to unsetting registry key. ... Once you get Windows XP up and running ... ...
    (microsoft.public.windowsxp.general)

Loading