Patent ID: 8289548

Claim:
A printer comprising first and second memory regions, and further comprising: a USB port; a memory comprising an ordinary storage region; a management table arranged outside the ordinary storage region of the memory, the management table for making a personal computer connected to the USB port recognize the ordinary storage region in the memory as a removable drive while managing an access to the ordinary storage region in the memory by the personal computer; the first memory region being a portion of the ordinary storage region in the memory assigned by the management table and storing an execution file of an application program therein, the execution file of the application program being configured to be read and executed by the personal computer; the second memory region being a portion of the ordinary storage region in the memory assigned by the management table and having a command file capable of including print data created by the application program written therein; a printing device executing printing based on the print data in the command file written in the second memory region; and a processor controlling the printing device and the memory, wherein, the processor executes processes of: (a) renewing the command file in the second memory region with a command file received; and (b) analyzing the command file currently renewed and taking out the print data, wherein, the personal computer comprises: a temporary folder; and a registry; wherein, the printer further comprises: a third memory region being a portion of the ordinary storage region in the memory assigned by the management table and having a notification file including status information of the printer written therein; and wherein, the processor executes an automatic power-off process for turning a power supply from a battery after a predetermined time period since remaining charge of the battery becomes lower than a predetermined level, and wherein, when the personal computer reads the execution file of the application program and executes the execution file thereon, after detecting the notification file, the application program executes processes of: (1) determining whether or not the notification file includes information showing that the automatic power-off process has been started as the status information; and (2) if it is determined that the notification file includes the information showing that the automatic power-off process has been started: (2-1) storing the print data as backup print data in the temporary folder; and (2-2) storing in the registry information to be read at next start for reading the backup print data from the temporary folder when the personal computer reads and executes the application program next time.