Enable the program on the SD card of the arm Development Board to run automatically upon startup

Source: Internet
Author: User

1: If it is an ARM processor, create a folder named 2577 in the SD card andProgramPut autorun.exe in this folder, and the SD card program will automatically run.

2: in the registry, add the Startup File Path to "\ path \ my.exe"

 

3:

SDK documentation for Windows Mobile-based Pocket pcsmanaging applications on storage cards with autorun.exe

The autorun.exe utility that ships with the Windows Mobile SDK enables Windows Mobile software to detect a storage card that has been inserted into a mobile device and to automatically load a specified application from the storage card into active memory. this utility also enables Windows Mobile software to detect removal of the storage card and instructs the application to perform cleanup and to remove itself from active memory.

To take advantage of this tool, add the following directory structure and files to a storage card:

 
Root \ .. \ 2577 \ autorun.exe

when a user inserts a storage card, the Windows Mobile-based device software searches the root directory of the card for a directory with the same name as the processor for that device. on Windows Mobile 2002 and later software for Pocket PCs, which are arm based, this directory is always named 2577-the processor type for arm. the software then searches this directory for the autorun.exe file and loads this file to the \ Windows directory in main memory on the device. finally, the shell invokes the copy of autorun.exe on the device by using the install parameter. when the user removes the card, the shell invokes autorun.exe by using the uninstall parameter. the software also detects whether a card is inserted, removed, or swapped while power is off and takes appropriate action as soon as the device is turned on.

For example, a game developer can store game binaries and data files on a storage card. the developer can then design an autorun.exe file that adds registry settings and loads necessary files when the storage card is inserted into the device and removes these settings and files when the card is removed.

In an enterprise application, autorun.exe cocould be used to deploy a custom software application and data to a large number of devices. updates to the application cocould be distributed to remote employees on inexpensive, low-capacity storage cards that perform automation and trouble-free installation when inserted into the devices. if users must cold boot or replace their devices, they can simply insert the storage card that contains the application and data.

programmers can determine the source directory for the autorun.exe file by using the shgetautorunpath function. A storage card must be inserted for this function to succeed, although autorun.exe does not need to be present on the storage card.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.