I tried writing a vbscript that would move files depending on file size. I would also like to run another vbscript after the first file finishes. Below is what I have:
strTargetFolder = "C:\1kbfiles\"
strSourceFolder = "C:\testfolder\"
Dim FSO, oFolder, oFile
Set FSO = CreateObject("Scripting.FileSystemObject")
Set ofolder = FSO.GetFolder(strSourceFolder)
For Each oFile In oFolder.Files
If oFile.Size = 1024 Then
FSO.MoveFile oFile.Path, strSourceFolder
Set FSO = Nothing
The file runs but does nothing. Any help would be appreciated.