Windows CE creates a folder that can be enabled by the program.

Source: Internet
Author: User

In Windows ce, add
Directory method:

Compiled a small program, such as shellexe.exe,
Add this program to the image and call it using the StartUp shortcut.
ShellExe and ShellExe then call the applications in the corresponding directory,
The specific implementation steps are as follows:

1. Create a shortcut, such as Autorun. lnk, and edit the content as follows:
21 #/windows/shellexe.exe/MYFlashDisk/Autorun/Autorun.exe
Specifically,/MYFlashDisk/Autorun/Autorun.exe is the absolute path of the application;
(You can create an autorun.txt file, change the content, and change it to Autorun. lnk)

3. Add shellexe.exe and Autorun. lnk to NK,
Add the following content to the project. bib file:

ShellExe.exe $ (_ FLATRELEASEDIR)/ShellExe.exe NK S
Autorun. lnk $ (_ FLATRELEASEDIR)/Autorun. lnk NK S
Note: the attribute of ShellExe.exe cannot contain H (hidden ).

4. Add the following content to project. dat:

Directory ("/Windows/Startup"):-File ("Autorun. lnk", "/Windows/Autorun. lnk ")

5. Select Make Image to generate the Image and install it in FLASH,
The autorun.exe file in the corresponding directory is correctly executed when you start the job.

Summary: This method is easy to use,
ShellExe.exe does not need to be re-compiled every time,
You only need to modify Autorun. lnk according to the Application Path,
You can load applications in Flash, USB Flash drives, and SD cards.
You do not need to re-run the kernel after debugging and upgrading the application.

 

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.