AUTORUN.INF 文件可以实现随机选取ICO文件吗?

来源:百度知道 编辑:UC知道 时间:2024/05/15 03:29:05
我想在文件夹中保存多个ICO文件,每次读取ICO文件时能随机选取一个标号,这样每次读取的时候就会有不同的图标了~
具体怎么做?给个代码把?

不可能的
以下是Autorun.inf的格式说明
This topic is a reference for the commands that can be used in an Autorun.inf file.

· [AutoRun] Commands
· [DeviceInstall] Commands

[AutoRun] Commands
· icon
· label
· open
· shellexecute
· shell
· shell\verb
[DeviceInstall] Commands
· DriverPath
......
具体见http://hi.baidu.com/zhbdbb/blog/item/7ea4868be6d482d2fc1f104d.html

微软没有留下随机选取ICO的接口。

可以