Finally it worked. Protected system folders and folders that already have them own icon folder are excluded.
Also so
The code is:
cls
cd\
@echo off
for /f "tokens=*" %%a in ('dir c: /ad /b /s') do (
echo "%%a"
@if not exist "%%a\desktop.ini" (
copy "C:\desktop.ini" "%%a"
attrib +s +h...
So it works , but it has one bug. When the name of the folder contains space ( ) ,
it cant read the name and gives the error :
Also i cant underrstand why it shows that path (C:\users\thana\Desktop).
I tried to put "" at %%a , but not works.
Current code :
@echo off
for /f "tokens=*" %%a in...
So the problem was the attributes. I put at root a desktop.ini with cleared attributes.
At command prompt the copy works. The current code , not works , only a flashing window :
@echo off
for /f "tokens=*" %%a in ('dir %USERPROFILE%\Desktop /ad /b /s') do (
echo "%%a"
@if not exist...
Another error:
Current code :
@echo off
for /f "tokens=*" %%a in ('dir %USERPROFILE%\Desktop /ad /b /s') do (
echo "%%a"
@if not exist "%%a\desktop.ini" copy "C:\Users\thana\Desktop\Recent_pcts\desktop.ini" "%%a"
pause
)
Note : the C:\Users\thana\Desktop\Recent_pcts\desktop.ini has the...
I run that , and nothing happens except a flashing window for 1 sec :
@echo off
for /f "tokens=*" %%a in ('dir %USERPROFILE%\Desktop /ad /b /s') do
(
echo "%%a"
@if not exist "%%a\desktop.ini" copy C:\desktopinitest.txt "%%a"
pause
)
:rolleyes:
So the current code is :
REM @echo off
title fix default folder icon
cd\
for /f "tokens=*" %%a in ('dir C:\users\thana\desktop /ad /b /s') do @if not exist "%%a\desktop.ini" copy C:\desktopinitest.txt "%%a"
pause
But still it gives 2 errors :
It looks you have right. I run this and it takes 1 sec.
REM @echo off
title fix default folder icon
cd\
for /f "tokens=*" %%a in ('dir C:\users\thana\desktop /ad /b /s') do @if not exist "%%a\desktop.ini" echo %%a
pause
With that export :
So i go to destination issue.
for /f "tokens=*" %%a in...
Hey.
I use this tweak in order to change the default order icon. It not works 100% OK.
Depending on the selected view it appears wrong. E.g :
I noticed though, that when a folder contains a desktop.ini then all folders display correctly in all views.
So , i think to solve that problem (i...
Nice. At HKEY_CLASSES_ROOT\SystemFileAssociations , i dont have .inf key.
Instead i have the context menu of .inf files at notepad's key , at :
So , i put your default command at Install\command\default and it works fine.
The key point for the users are playing with the file types and context...
I mean i have a .reg file to add "install" at the context menu of .inf files.
Anyway , i reset it to default via settings and now it has the "install" option (default is the Notepad app). The menu now is :
But when i select install at an .inf i take an error "This file hasnt a related...
Hey.
I want to add the "install" option at the context menu of .inf files.
I have an older .reg file (i guess for Win 10) but it not works.
The first question is if it exist by default at Win 11.
Thanks.