Am using the script below to move files from one folder to another. Does
anyone know what I should add to it to have it create a text file that
appends to itself and should what was moved.


Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFile "C:\LOC1\test.wav" , "C:\LOC2\"

Re: Script To Log Moved Files by McKirahan

McKirahan
Tue Oct 10 21:09:11 CDT 2006

"RaSco" <RaSco@discussions.microsoft.com> wrote in message
news:4EA25611-DB89-4578-BA8B-720539FEDA55@microsoft.com...
> Am using the script below to move files from one folder to another. Does
> anyone know what I should add to it to have it create a text file that
> appends to itself and should what was moved.
>
>
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> objFSO.MoveFile "C:\LOC1\test.wav" , "C:\LOC2\"

To append to a file do the following:
objFSO.OpenTextFile("your_test_file",8,True)
The "8" indicated "ForAppending".

Basically, you need to identify what exists in the destination
folder before the MoveFile() (presuming it's not empty) and
compare it to what exists afterwards.

Wait a minute. You're only moving one file -- what's the issue?