press any key during format

Discussion in 'Windows 10' started by man100, Jun 5, 2022.

  1. man100

    man100 MDL Junior Member

    Sep 7, 2021
    52
    2
    0
    I let my usb drive as bootable drive by next bat file
    Code:
    @ECHO OFF
    set WINDOWS=c:\win10
    set ISO=c:\ISO
    set OSCDIMG=c:\imagex\oscdimg.exe
    "%oscdimg%" -oc -t7/14/2009,2:26:40 -h -u2 -m -b"%WINDOWS%\boot\etfsboot.com" -lGRMCULFRER_DVD "%WINDOWS%" "%ISO%/WINDOWS_10.iso"
    EXIT
    
    then I put files for win10 in usb drive.
    but during format do not appear press any key to boot ,
     
  2. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    "%ISO%/WINDOWS_10.iso" should be "%ISO%\WINDOWS_10.iso"
    Why using -oc and -t and other options? IS ISO OK to boot in a VM?
     
  3. man100

    man100 MDL Junior Member

    Sep 7, 2021
    52
    2
    0
    there is not any problem in iso boot but if you let usb drive as first boot option , you can not complete installing window because of after pc restarting during installing windows it will start from the beginning therefore I want know how to appear press any key to boot from drive
     
  4. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,965
    908
    60
    It may be something to do with efisys.bin vs efisys_noprompt.bin. Have you run someone else's batch file? I've seen some batch files renaming these.
    Is your usb a WindowsToGo or hdd? Normally when you do your install "Windows Boot Manager" becomes the 1st bootable device but if your using a usb hdd then the boot order in the bios(UEFI) may not have changed...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,965
    908
    60
    You could always take out the USB drive, reboot, and let it continue with install...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. man100

    man100 MDL Junior Member

    Sep 7, 2021
    52
    2
    0
    yes I do that but I want know if I can appear press any key .....
     
  7. man100

    man100 MDL Junior Member

    Sep 7, 2021
    52
    2
    0
    my usb drive is flash memory
     
  8. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,358
    7,077
    210
    The text is generated by a special boot sector applied to the ISO. To my knowledge, this boot sector is not applied to the USB drive and thus the text is unavailable.

    We had such special boot sectors for floppy disks in the past (like the VGACOPY boot sector), maybe the same can be developed for USB drives as well.
     
  9. man100

    man100 MDL Junior Member

    Sep 7, 2021
    52
    2
    0
    that commands in bat file are very good but I need code to appear press any key to boot from cd dvd drive
     
  10. kaljukass

    kaljukass MDL Guru

    Nov 26, 2012
    3,396
    1,322
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
  12. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,358
    7,077
    210
    Yes, the text in question is readable in the "bootfix.bin" file that is part of the "etfsboot.com" boot sector chain applied to the ISO. It appears when booting from that (real or virtual) CD/DVD. USB drives either work as hard drives, or as "superfloppies". Both don't get that boot sector applied and thus cannot present the skipping function.

    Personally, I'm always boot from hard disk first, then from the removable drives. Upon booting installation, the removable drive will come up automatically if the hard disk isn't bootable, otherwise, I'll access it through the boot menu most mainboards have (F8 or F11 or F12 or whatever key is assigned).
    Upon the first reboot into the installation procedure, the hard disk is bootable and the removable drive won't boot anymore. Used that system for many years now.
    UEFI users can access the removable drive once through the UEFI boot manager, part of the UEFI settings.
     
  13. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,759
    5,223
    120
    found this by mistake ..
    Code:
    06/04/2021  07:49 PM         1,474,560 efisys.bin
    06/04/2021  07:49 PM         1,474,560 efisys_noprompt.bin
    06/01/2021  02:25 PM             4,096 etfsboot.com
    06/05/2021  02:42 AM           147,920 oscdimg.exe
    
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,759
    5,223
    120
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...