Need a little help with a some vbscipt. I need a function that will read a specific .txt file that has a list of files of certain type (.doc, and .mp3) and check to see if an backup is nessesary. This .txt file has been created from this previously called function:
Set oFolder = fso.GetFolder(objCurrentFolder)
For Each oFile In oFolder.files
If oFile.Extension = "txt" OR "doc" Then
Set objFiletxt = objfso.CreateTextFile("i:\search_results.txt", True)
For Each objNewFolder In oFolder.subFolders
'code is untested at the moment as other functions are being made
If the files listed in the .txt file are already in the designated backup folder, and its modified date has not changed, then i want to remove the file listing from the .txt file.
I then want the remaining files in the .txt file to be copied to the designated backup folder.
i am only concerned with checking local hard drives and removeable media (eg - USB sticks) so network drives are not nessesary.
Feel free to make whatever changes you see fit for the code that I have supplied
Any help will be appreciated