@echo off title Copy Windows Installation Files To C:\ for installation after reboot. echo. echo This script will copy Microsoft Windows XP installation files echo from your USB stick to your local hard disk C:\. echo. echo C: (hd) and X: (usb) and some other stuff are hard coded in this script. echo Change if that don't suit you. echo. echo Press ctrl-c to abort. echo. pause if exist "X:\My_winnt.sif" ( echo. echo Found X:\My_winnt.sif. Using un-attended mode. echo. X:\WinXP-cd\I386\winnt32.exe /syspart:c: /tempdrive:c: /unattended:x:\My_winnt.sif /noreboot /makelocalsource ) else ( X:\WinXP-cd\I386\winnt32.exe /syspart:c: /tempdrive:c: /noreboot /makelocalsource if exist "C:\$WIN_NT$.~BT\winnt.sif" ( echo. echo Copying C:\$WIN_NT$.~BT\winnt.sif to X:\My_winnt.sif, echo so that next installation can be un-attended, echo. copy C:\$WIN_NT$.~BT\winnt.sif X:\My_winnt.sif ) ) echo. echo File copying is done. echo. echo Shutdown host by: Selecting GO, Shutdown, Shutdown echo then remove USB stick and power-on to boot from HD. echo. pause rem EOF