Re: BAT file to re-start in Safe Mode...?
- From: Kenneth <usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Sep 2008 19:48:07 -0400
On Sun, 28 Sep 2008 22:34:44 +0200, "Pegasus \(MVP\)"
<I.can@xxxxxxxxxx> wrote:
"Kenneth" <usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:mtnvd4lq21khagc7a1c0m8kujdv4289sv7@xxxxxxxxxx
On Sun, 28 Sep 2008 20:03:07 +0200, "Pegasus \(MVP\)"
<I.can@xxxxxxxxxx> wrote:
We now have this simple fact:
=> At boot time (any boot!) c:\boot.ini should replaced by c:\boot.norm.
You must therefore check if this is the case.
1. Force a safe boot with your newly created shortcut.
2. Wait until the system has rebooted to Safe Mode.
3. Check c:\boot.ini. What does it look like?
If it does not like right, you must check if and when your batch file ran.
This is just as simple - modify it like so and examine c:\test.txt after
the
reboot:
@echo off
if /i "%1"=="Safe" (
attrib -r -a -s -h c:\boot.ini
echo Safe boot on %date% at %time% >> c:\test.txt
copy /y c:\boot.SAFE c:\boot.ini
shutdown -r -t 00
) else (
echo Normal boot on %date% at %time% >> c:\test.txt
attrib -r -a -s -h c:\boot.ini
copy /y c:\boot.NORM c:\boot.ini
)
No magic to this one either! By the way, the -a switch in your attrib
command servers no purpose whatsoever. Omit it - it only confuses the
issue!
Hi again,
Here are the steps I have taken and the results:
I replaced the earlier myboot.bat with your modified version
(with the echo statements for date and time.)
I removed the "-a" from the attrib command.
I launched the shortcut that starts the process. There was
visible a brief flash of the command screen displaying "one
file copied" and then the system rebooted into Safe Mode
with Networking.
After the boot completed, I checked boot.ini, and it
displayed with the Safe:Network version, that is, boot.ini
had been replaced by boot.safe.
No date or time information ever displayed, but perhaps that
was not the function of the Echo lines you had added.
Next, I looked at my Scheduled tasks and in the summary I
see the Name "MyBoot" (without quotes, and without the
extension "bat"). Its schedule field says: "Run at system
startup."
Finally, I manually ran myboot, to copy boot.norm into
boot.ini. I checked boot.ini, and it was the boot.norm
version, so myboot had done that part of its work.
I then rebooted into Normal Mode.
That's the status to this point.
Thanks for any further thoughts,
--
Kenneth
If you email... Please remove the "SPAMLESS."
It seems you missed the most important point of the whole exercise. In my
most recent note I wrote ". . . modify it like so and examine c:\test.txt
after the reboot". What's happened to your examination of c:\test.txt? Have
you given any consideration of what the following batch file line actually
does?
echo Normal boot on %date% at %time% >> c:\test.txt
Hi again,
I take no small measure of pride in the fact that when I
ignore something, it's "the most important point of the
whole exercise." No, I'm not one to ignore anything that
could be considered trivial <g>.
In any case, I ran the bat file, and am now in Safe Mode
with Net. BOOT.INI is boot.safe, and TEST.TXT shows:
Safe boot on Sun 09/28/2008 at 19:35:06.93
Safe boot on Sun 09/28/2008 at 19:35:29.20
Thanks for any further thoughts,
--
Kenneth
If you email... Please remove the "SPAMLESS."
.
- Follow-Ups:
- Re: BAT file to re-start in Safe Mode...?
- From: Kelly
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- References:
- Re: BAT file to re-start in Safe Mode...?
- From: Pegasus \(MVP\)
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- From: Pegasus \(MVP\)
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- From: Pegasus \(MVP\)
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- From: Pegasus \(MVP\)
- Re: BAT file to re-start in Safe Mode...?
- From: Kenneth
- Re: BAT file to re-start in Safe Mode...?
- From: Pegasus \(MVP\)
- Re: BAT file to re-start in Safe Mode...?
- Prev by Date: Re: Help with IE8 beta
- Next by Date: Re: BAT file to re-start in Safe Mode...?
- Previous by thread: Re: BAT file to re-start in Safe Mode...?
- Next by thread: Re: BAT file to re-start in Safe Mode...?
- Index(es):
Relevant Pages
|