i'd like to get a list only of the exclude folders aswell,
so the list in the msgbox will be displayed exactly like:
"Windows" "Users" "Program Files" "ProgramData" "$Recycle.Bin"
Code: Select all
vDir1 := "C:"
vList := ""
Loop, Files, % vDir1 "\*", D ; folders
{
if !(A_LoopFileName = "Windows")
&& !InStr(A_LoopFileName, "Users") && !InStr(A_LoopFileName, "Program Files") && !InStr(A_LoopFileName, "ProgramData") && !InStr(A_LoopFileName, "$Recycle.Bin")
vList .= A_LoopFileFullPath "|"
}
vList := SubStr(vList, 1, -1)
MsgBox, % StrReplace(vList, "|", "`n")