Patent ID: 7113837

Claim:
A host device connected to at least one target device via a communications network, the target device storing a plurality of pieces of program code corresponding to possible system environments of the host device, and two or more pieces of program code of different data sizes corresponding to at least one of the possible system environments, the host device including: an obtaining unit operable to obtain the program code information associated with the pieces of program code from the target device; a predetermined memory area operable to store one of the pieces of program code; an information parser for checking a system environment of the host device and a free space in the memory area, parsing the program code information, and determining, from out of the pieces of program code stored in the target device, a piece of program code that is suitable for the system environment and storable in the memory area; a reading unit operable to read the piece of program code determined by the information parser from the target device, and to cause the read piece of program code to be stored in the memory area; and a controller for controlling the target device by using the piece of program code stored in the memory area.