How to change existing folder's icon via Command Line? (Windows 10)

前端 未结 2 1423
逝去的感伤
逝去的感伤 2021-01-15 06:13

I have a folder on my desktop and 12 different icons. I want to create a scheduled task with Task Scheduler that runs as long as my PC is on and changes the icon of the fold

2条回答
  •  误落风尘
    2021-01-15 07:07

    You can use below script that I found it here.

    If [%1] == [] goto :eof
    ECHO [.ShellClassInfo] >%1\desktop.in
    ECHO IconResource=C:\icon.ico,0 >>%1\desktop.in
    move %1\desktop.in %1\desktop.ini
    attrib +S +H %1\desktop.ini
    attrib +R %1
    

提交回复
热议问题