Lillly said:
As I said, "what I want is not possible under XP".
Well, since you never did divulge what you REALLY want to do,
suggestions are limited by what you actually asked. Without any real
information regarding what you are really attempting, and if you are
trying to use insecure DOS before Windows-anything loads (and for
NT-based versions of Windows that never ever included real DOS mode), I
suppose you could get really tricky and:
- Install DOS in another partition (i.e., different than where is
installed Windows XP).
- Use FDISK on a bootable floppy to designate the DOS partition as the
active primary partition.
- Write the config.sys and autoexec.bat files to do what you want in the
computer. If you are using NTFS, you'll need to use a 3rd party driver
that provides NTFS support under DOS.
- Put whatever commands you want to execute in the autoexec.bat file.
Note that you are still NOT running anything *before* the operating
system has loaded. You are still running the commands under an OS
(i.e., MS-DOS).
- Get a utility that lets you change which primary partition is active
and used for booting, like Powerquest's PQBoot. Then add the command
for it in autoexec.bat so it the system will reboot using the Windows XP
partition.
- Get a utility that lets you reboot the system from a command. Then
add it in autoexec.bat after the one that changed the active primary
partition (to the Windows XP partition).
- When you are in Windows XP, you will need to use the Disk Management
MMC to change the active primary partition back to the one containing
DOS. Or add a shortcut to the All Users Startup group, to the HKLM Run
key, or to Task Scheduler as a Windows startup event that runs the
command-line version of, say, PQBOOT to change the active primary
partition to the one containing DOS. Then on the reboot out of Windows
XP, the DOS partition gets reused.
When you boot, the primary partition with DOS will load and run its
config.sys and autoexec.bat commands. One of the commands in
autoexec.bat changes the active primary partition to the Windows XP
partition and another command afterward will reboot the computer. You
then reboot into Windows XP where the active primary partition gets
switched back to the DOS partition for use on the next reboot.
This operates similary to how multiboot managers work, like Powerquest's
Bootmagic or Terabyte's Bootit NG (BING), except the point is to let you
choose which OS to load, you use it, reboot, and then select a different
OS to use.
There are ways to emulate "what you want" as you asked, but without
knowing "what you need to really do and why" then there are LOTS of
possibilities regarding an unknown actual goal.