Set fso = CreateObject("Scripting.FileSystemObject") Set output= fso.OpenTextFile("C:\Users\username\Desktop\output.

txt",8,True) Const COOKIES = &H21& Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(COOKIES) Set objFolderItem = objFolder.Self Wscript.Echo objFolderItem.Path output.WriteLine (objFolderItem.Path) Set colItems = objFolder.Items For Each objItem in colItems Wscript.Echo objItem.Name output.WriteLine (objItem.Name) Next save it as "filename.vbs" then run it

Sign up to vote on this title
UsefulNot useful