for changing folders icons but it requires to chose the file icon manually
i want to change that and make it get the ico file from inside the folder
and alsow want to make it bulk (to change many folders at once)
But i'm new to this so any help
this is the original code
Code: Select all
"Iniconizer"
if ("<curitem>" != '') && (exists("<curitem>") != 2) {
$ico = getpathcomponent("<curitem>",file);
} else {
$ico = inputfile("<curpath>", /*"ico|exe|dll|icl|cpl"*/, "choose icon source");
$ico = resolvepath($ico,"<curpath>", 1); //make relative to <curpath>
}
//if (exists("<curpath>\desktop.ini") != 1){new("<curpath>\desktop.ini",file);}
setkey "$ico", "IconFile", ".ShellClassInfo", "<curpath>\desktop.ini",2;
setkey "0", "IconIndex",".ShellClassInfo", "<curpath>\desktop.ini",2;
attrstamp(h,1,"<curpath>\desktop.ini"); //desktop.ini hidden
attrstamp(r,1, "<curpath>\"); //folder must be readonly to show icon
Code: Select all
"Iniconizer"
if ("<curitem>" != '') && (exists("<curitem>") != 2) {
$ico = getpathcomponent("<curitem>",file);
} else {
selfilter "*.ico;*.r##";
$baseName = getpathcomponent($item, "file");
$ico = resolvepath($baseName,"<curpath>", 1); //make relative to <curpath>
}
//if (exists("<curpath>\desktop.ini") != 1){new("<curpath>\desktop.ini",file);}
setkey "$ico", "IconResource", ".ShellClassInfo", "<curpath>\desktop.ini",2;
setkey "0", "IconIndex",".ShellClassInfo", "<curpath>\desktop.ini",2;
attrstamp(h,1,"<curpath>\desktop.ini"); //desktop.ini hidden
attrstamp(r,1, "<curpath>\"); //folder must be readonly to show icon
//openwith "notepad", , "<curpath>\desktop.ini";
//uncomment above to open the ini after creation