Quick and self-starting method for adding applications to Windows XP Desktop

Source: Internet
Author: User

Put the executable program myapp.exe into the FAT partition flash and create its shortcut on the desktop:

(1) create a kinglyapp. lnk shortcut file

Use the notepad that comes with Windows desktop to create a file. When saving the file, change the suffix to lnk .. The lnk file is actually a text file that contains the command line used to link the target and the length of the command line, it is used to point to the path where the application corresponding to the shortcut is stored (establish the correspondence between the application and its shortcut). The format is

 

"<Length >#< command line>", where length is the number of all characters after #. Therefore, the content of MyApp. Lnk is as follows:

 

22 #/kinglyflash/myapp.exe

 

Note: After you change the suffix of MyApp. lnk to. lnk, you will not be able to use notepad.

Put this file in the smdk2410/Files directory.

 

(2) Add shortcuts to the kernel

Open the project. bib file and add the following content:

Myjetapp. lnk $ (_ flatreleasedir)/MyApp. lnk NK u

In this way, myjetapp. lnk will be added to the kernel when sysgen is executed, and will be stored in the/Windows Directory of the Development Board.

Note:

Myjetapp. lnk is the shortcut name in the/Windows Directory generated, while MyApp. lnk is the name of the lnk file created in step 1. Otherwise, the compilation will be incorrect. Of course, the two file names can be the same.

 

(3) add shortcuts to the desktop

Open project. dat and add the following content:

Directory ("/Windows/loc_shorttop_dir"):-file ("My test. lnk", "/Windows/myjetapp. lnk ")

The shortcut named "kingly test" appears on the desktop. It is a copy of kinglyjetapp. lnk, and its content is the same as that of kinglyjetapp. lnk.

(4) Finally, execute the menu builder-sysgen to generate NK. Bin and NK. nb0.

After you burn them or download them to the Development Board, you will see the "kingly test" shortcut on the desktop.

 

(5) automatically run the application or put it on the desktop when the wince system is started.

Assume that the Windows CE. Net target project is of the cepc type, the directory is E:/project/mywince, and the project has been built (or rebuild) successfully;
Assume that the WindowsCE. NET application is "myapp.exe"

① Copy myapp.exe to the E:/projects/mywince/reldir/samsung_smdk2440_armv4irelease directory;

② Modify the project. bib file of the mywince project and add
Myapp.exe $ (_ flatreleasedir)/myapp.exe nk h

③ Create the shortcut file MyApp. lnk (first create a text file, write the content, and then change the extension to. lnk). The file content is as follows (just one line of characters ):
10 #/Windows/myapp.exe

The MyApp. lnk file is also stored in the E:/projects/mywince/reldir/samsung_smdk2440_armv4irelease directory.

④ Modify the project. bib file of the mywince project and add
MyApp. lnk $ (_ flatreleasedir)/MyApp. lnk nk h

⑤ Modify the project. dat file of the mywince project and add the following content:

Directory ("/Windows/startup"):-file ("MyApp. lnk", "/Windows/MyApp. lnk ")


⑥ Platform builder ide-> menu build-> makeimage (do not build or rebuild,
Otherwise, you will try again)

The obtained nk.binincludes the application myapp.exe and MyApp. lnk, And the MyApp program runs automatically when the system starts.

  

 

  

 

 

Related Article

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.