如何在Windows中更改多个文件夹图标 [英] How to change multiple folder icons in windows
本文介绍了如何在Windows中更改多个文件夹图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have a little collection of movies placed in folders. I placed movie poster in each folder, and recently, I placed an icon (converted from that poster thru a software) in each folder, and i want that each folder will look from the icon placed in each of them.
Is there a .bat file, or any means of doing it faster, instead of going thru folder attributes individually?
please help. icon file is named "icon.ico" Each folder contains: movie.mp4; movie.nfo; poster.jpeg; Trailer.mp4; icon.ico.
thanks in advance.
我尝试过:
What I have tried:
@echo off
set O=desktop.old
set F=desktop.ini
FOR /R %%I IN (*.ico) DO @(
cd%%~pI
if exist %%~dpnI.png (
echo %%~dpnI.png
attrib -h -s %F%
copy /Y %F% %O%
echo [.ShellClassInfo] > %F%
echo IconResource=%%~nxI,0 >> %F%
echo [ViewState] >> %F%
echo Mode= >> %F%
echo Vid= >> %F%
echo FolderType=Videos >> %F%
echo Logo=%%~nI.png >> %F%
attrib +h +s %F%
)
)
cd ..
by squilibob,但不适合我
by squilibob, but is not working for me
推荐答案
@ CHill60感谢您的回复。我试过了
@CHill60 thanks for the reply. I tried
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
但可能问题是,如果我可以,在代码中图标的位置在C:/icon.ico。
我将输入什么作为图标文件的位置,因为图标位于个人内部文件夹,它被命名为icon.ico..
非常感谢你..
PS。我也试过
but may question is this if I may, in the code the location of icon is at C:/icon.ico.
What will I input instead as the location of icon file, since the icons are located inside individual folders, and it's named as "icon.ico"..
Thank you so much..
PS. I also tried
If [%1] == [] goto :eof
ECHO [.ShellClassInfo] >%1\desktop.in
ECHO IconResource=%1\icon.ico,0 >>%1\desktop.in
move %1\desktop.in %1\desktop.ini
attrib +S +H %1\desktop.ini
attrib +R %1
但仍无效。
谢谢
but still not working.
thanks
这篇关于如何在Windows中更改多个文件夹图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文