I've never had to use this myself, but I'm told it works. Not being familiar with XP I don't know if you can use it with that OS
The UNFORMAT (DOS) command is used to recover files on a disk that have been erased by using the FORMAT command.
The UNFORMAT command cannot always recover all the files that were on a disk that was accidentally formatted. To assure a better recovery of files on a formatted disk, use the MIRROR command.
drive Specifies the drive containing the disk to unformat.
/J - Checks the disk to determine if the MIRROR command has been used to place file-recovery information on it. (In DOS Version 6, this program is stored on the DOS supplemental disk.)
/L - Used with the /partn parameter to tell DOS that there is no MIRROR file on the disk.
/P - Used to tell DOS to send any UNFORMAT messages to the printer.
/U - Used to tell DOS to recover files from a formatted disk without using the MIRROR file information (starting with DOS Version 6, this option is no longer available).