2
Use the following VBS script.
My system is windows 10 64 bit.
I've solved it with a vbs script.
First I change the folder attributes to "system folder".
Then I placed an Desktop.INI file inside the folder with the comments as a parameter "InfoTip". You can change the comments inside the INI file later to change the comments field.
This is the script (you can drag a folder on the script to use it):
'CreateFolderComments.vbs 'On Error Resume Next Dim Foldername Dim strMessage Dim oShell Dim fs Set fs = WScript.CreateObject("Scripting.FileSystemObject") strMessage = Inputbox("Comments","Input Comments") Foldername = Wscript.Arguments(0) 'Msgbox chr(34) & Foldername & chr(34) Set oShell = WScript.CreateObject("WSCript.shell") oShell.run "C:\Windows\System32\attrib +s " & chr(34) & FolderName & chr(34) Set Tekstfile = fs.CreateTextFile(FolderName & "\Desktop.Ini", True) Tekstfile.writeline("[.ShellClassInfo]") Tekstfile.writeline("InfoTip=" & strMessage) MsgBox "DONE !"
Source In Window Explorer, How do we add a Comment for a folder? - Microsoft Community
No, but see above script.
1thanks! But what do you mean by
First I change the folder attributes to "system folder".? (What must I do, concretely?) – JinSnow – 2018-02-09T10:46:18.510@JinSnow I'm guessing something like
attrib +s <path>– mythofechelon – 2020-02-26T10:35:53.767