I have many folders with custom icons. All the folders are present in same directory.
For eg. D:\Folder is the directory which contains folder1, folder2, ..... etc.
And each folder contain their respective icon and desktop.ini files
The contents of current desktop.ini file are as follows:
[.ShellClassInfo]
ConfirmFileOp=0
NoSharing=1
IconFile=folder1.ico
IconIndex=0
InfoTip=folder1
I want to remove NoSharing=1 from each folder's desktop.ini file.
After Removal the ini file should look like :
[.ShellClassInfo]
ConfirmFileOp=0
IconFile=folder1.ico
IconIndex=0
InfoTip=folder1
The ini file is hidden and has attributes : system, hidden and archive.
Thanks for any help you may be able to provide.
Just 1 command: Recursively(
-r) replace/removeNoSharing=1line in eachdesktop.inifiles inD:\Foldermsr -r -p D:\Folder -f "^desktop.ini$" -S -t "(\s+)NoSharing=1\s*" -o "$1" -R-R-Klike-R -Kor-RKmsr.exe/msr.gcc*/msr.cygwinis a single exe tool (about 1.6MB, no dependencies, with cross platform versions on Windows and Linux) to find and replace files or pipe text recursively and support backup: in my open project https://github.com/qualiu/msrtoolsdirectory.