Thanks for the response I recieved through comments and mails for the Part 1 of my install Windows from a Pendrive.Few of my site's visitors were not able to access their harddisk drives in the dos mode because they used a NTFS file system.The boot disk I provided did not support NTFS filesystem.So am going to solve that problem here.
I will make it as simple as possible.The tools needed are:
1.NTFS floppy setup or NTFS4DOS
2.Win XP setup files(The I386 folder is enough).
All you have to do is to insert the pendrive in the USB port and run the NTFS floppy setup utility.Choose your empty pendrive and click start.This will create the bootable pendrive.
Now copy the I386 from the Windows setup that you have.Restart the system by setting the boot priority to USB.the system boots to the DOS mode.Now you will be able to access other drives too because it is a NTFS boot disk.Now enter the USB drive and copy the setup files to your harddisk.for that use the command
copy [sourcePath] [destinationPath]
Where the source path is the setup files in your USB and the destination path is your harddisk.Now run the setup from the copied setup files in your harddisk,say c drive.To run setup type,
a:\>c:
c:\>cd I386
c:\I386>winnt
Thats it.You are done.The setup starts.
p.s.This post is in response to the user(Nicky) comment in my part one .Thanks folk.
Here is a way to install windows XP by booting from a USB.I had to find this out because, My friend came with a problem that his existing OS got corrupt and his CD-Rom had failed.So i thought of searching for a way to solve this issue and came out with an idea of installing by booting from a pendrive.I had to search for a long time to find an answer to make the USB boot.I don't want anyone else to break up their head as i did to find the solution.So I am publishing here what i did.
You need to download two files for this process:
1.HpUSBformat(2MB)
2.Dos Files(less than a MB)
Extract the dos files(solution.rar) to c:\dos.now run the HpUSB format utility to format the pendrive and make it bootable.Run the Hp USB utility.select the USB drive(usually it selects automatically).select the check box create a dos startup disk and check "using DOS system files located at and select the target location where you extracted the DOS files.your utility should look like this.
Click start.
Now copy the other files in your extracted DOS files folder to the pendrive.your USB should look like this.
Now copy the setup files from the Win XP setup CD or from your hard disk.Thats it .Your bootable Win XP USB setup is ready.
In the bios ,set boot priority for the USB as first and perform the boot.the cursor will stop with a drive.Type nc and hit enter. Norton Commander will open.This will copy all files from pendrive to disk C.
[Note: You can also install directly from the pen drive by typing "cd I386" and then running "winnt" instead entering the norton commander].
Remove Your pendrive and reboot your system.The system will enter the windows setup wizard.Then the usual routine as installing from a CD.You are done..!!!
Check the new part two also Install Windows By Booting From A USB...!!!(PART 2 for NTFS)