How do I randomly pick an icon for a pen drive?

不问归期 提交于 2020-01-06 07:01:28

问题


I've seen a tutorial online that explained how to change the icon of a pen drive once inserted using an autorun.inf file and a .ico file, and it worked perfectly, but I wanted to know if there's a way to choose a random file from a list of .ico files inside the pen drive.

Here's the code I'm using for the normal icon

[Autorun]
Icon=IconName.ico
Label=PENDRIVE

If this can't be directly done using the autorun.inf file, please let me know an alternative method, even if it requires other files (such as .vbs files)

Here's the website I used just in case

https://www.windowscentral.com/how-set-custom-icon-removable-drive-windows-10

来源:https://stackoverflow.com/questions/48526543/how-do-i-randomly-pick-an-icon-for-a-pen-drive

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!