'========================================================================== ' NAME: ' ' AUTHOR: ed wilson , mred ' DATE : 4/6/2006 'ver.1.2 'adapted to use new code. minor modifications. ' COMMENT: ' '========================================================================== LogFile = "C:\fso\fso.txt" Const ForWriting = 2 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(LogFile, ForWriting) Set objshell = CreateObject("Shell.Application") Set objNS = objshell.namespace(&h2f) Set colitems = objNS.items objFile.WriteLine "Process started at " & Now For Each objitem In colitems WScript.Echo objitem.name Next objFile.WriteLine "Process completed at " & Now objFile.Close