I am new to vbscript
Trying for hours to fix the script.
Basically what I am trying to do is
1) To get the filenames from the folder specified
2) Use the filenames from the folder and compare with the names listed in a .txt file and write the missing filename that is not present to the log file.(output.txt)
This is what i have done.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Const forReading = 1
logName = "Output.txt"
Set logFile = objFSO.CreateTextFile(logName, True)
inputFile = "a.txt"
strFolder1 = InputBox("Enter Source Folder Path :")
Set fileList = objFSO.OpenTextFile(inputFile, forReading)
Set objFolder1 = objFSO.GetFolder(strFolder1)
Set files = objFolder1.Files
For each objFile in files
fileName = objFile.Name
fileSpec = fileList.ReadLine()
If not (fileName = fileSpec) Then
Appreciate your help.