- pen drive with atleast 1GB
- winxp installation disk
- access to a PC with working CD-ROM drive and winrar software
- this file solution.rar or solution.rar (both are same but links are different).
Put your pendrive into the working PC
Download the file and unpack it on drive C
Go to the folder C:\Dos and run HpUSBformat.exe file
it will ask to format the pen drive put options like in the image below

copy all files from C:\Dos to pendrive
put winxp installation disk into CD-ROM and copy all files from CD to pendrive
now boot your system(in which you want to install winxp) with pendrive
use fdisk to see your drives and format or create partitions (if you have partitions formated already you dont need this step)
using nc commander, copy all files from pendrive to partitioned drive( type nc enter and then F5 to copy files it will ask for path give the path for more shortcuts see this )
now you have system with DOS bootable
restart your system without pendrive
type cd i386 enter and then winnt enter
it will install winxp as if we put a cd in CD-ROM (remember don't install winxp in the same partition as in we copy these files because while installing winxp it will format the partition and we will loose all the installation files)
Note:
1. we need 2 empty partitions by this method
2. your system should have the option "boot on pendrive"