The flash-all.bat file is a Windows batch script included within Google’s official factory image packages. When executed, it runs a sequence of fastboot commands that wipe your device and install the bootloader, radio, and system partitions. This is the "nuclear option" for fixing a soft-bricked device or removing a custom ROM to return to stock settings. Where to Download flash-all.bat