开机如何自动运行StorageCard上的应用程序???

quaddamage 2006-06-29 10:23:02
将程序的路径写到 HKEY_LOCAL_MACHINE\INIT\ 下 ,DependXX也指向Shell32.exe了,
但是每次启动都无法运行该Storage Card上的程序,后来经测试发现每次启动过程中找不到StoragCard, 只有在系统完全启动之后,进到桌面之后才能找到Storage Card。
请问有什么设置能让系统启动过程中找到StorageCard??
...全文
677 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
载舟之水 2006-08-28
  • 打赏
  • 举报
回复
怎么回事,大家都不看问题回答吗?牛头不对马嘴
quaddamage 2006-08-28
  • 打赏
  • 举报
回复
只能自己写个小程序延迟加载SDcard上的软件了。
samp_miao 2006-08-27
  • 打赏
  • 举报
回复
\2577\autorun.exe
在卡上建个2577的目录,放进去。
但是不同的CPU这个值不同。
slyzhang 2006-08-27
  • 打赏
  • 举报
回复
horris(僧推月下门) ( ) 信誉:100 Blog 先生说的 可能在 PPC 和MSPHONE下的有实现,在WINCE下要自己实现这个AUTORUN 功能,并且一般都会要求在检测到卡的时候带有参数INSTALL 执行 在检测到REMOVE的时候 加-UNINSTALL 执行..


一般情况下需要自己写一个APP 来控制.....

学习
载舟之水 2006-08-24
  • 打赏
  • 举报
回复
那说明SD卡驱动加载比较晚,注册表执行的时候SD driver还没加载上,好像没有什么好办法解决,也许你可以写一个app.exe,用来放在INIT\下,延迟加载。
peng22277 2006-08-23
  • 打赏
  • 举报
回复
有结果没?
horris 2006-08-23
  • 打赏
  • 举报
回复
以下来自eVC4的帮助文档:

Automatically Installing or Running an Application on a Storage Card
The Auto-run feature enables Pocket PC software to detect a storage card that has been inserted into Pocket PC, and to automatically load a specified application from the storage card into active memory. Auto-cleanup causes Pocket PC 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 Auto-run and Auto-cleanup, add the following directory structure and files to a storage card:

Root\...\2577\autorun.exe
When a user inserts a storage card, Microsoft Windows for Pocket PC searches the root directory of the card for a directory with the same name as the processor for that device. On Pocket PC 2002 and later devices, which are ARM based, this directory will always be called 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 Pocket PC. 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 will also detect if a card is inserted, removed, or swapped while power is off, and will take 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 to add registry settings and load necessary files when the storage card is inserted into Pocket PC, and to remove these settings and files when the card is removed.

In an enterprise application, Auto-run could be used to deploy a custom software application and data to a large number of devices. Updates to the application could be distributed to remote employees on inexpensive, low-capacity storage cards that perform automatic and trouble-free installation when inserted into Pocket PC devices. If users must cold boot or replace their devices, they can simply insert the Auto-run storage card that contains the application and data and return to work.

Programmers can determine which directory Auto-run is using as its source for the Autorun.exe file by using the SHGetAutoRunPath function. This function will search for the first storage card and construct the path that would be used to look for an Auto-run file. A storage card must be inserted for this function to succeed, although it is not necessary that an Auto-run file or directory actually be present on the storage card.

就是说,如果你用的是Pocket PC 2003,那么就在存储卡上建个2577目录,然后把你要自动运行的程序改成autorun.exe,放到这个目录下
quaddamage 2006-07-03
  • 打赏
  • 举报
回复
楼上的不是在开玩笑吧。。
frankeagle 2006-06-30
  • 打赏
  • 举报
回复
在storage card上建一个444的目录,然后把程序拷进去,再启动就可以运行了

19,504

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧