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.