Need Script to compare 2 text file and copy files

Author Message
balasee

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 12/14/2011
  • Status: offline
Need Script to compare 2 text file and copy files Wednesday, December 14, 2011 1:47 AM (permalink)
0
I have a source directory and destination directory.
I am copying say 1000 files from Source to Destination. While copying some files are getting missed. I need a script to search / compare 2 foldes, which files are missed out and should save as missed.txt.
Get Input from missed.txt, copy the missed file to destination directory.
Ex: Source:
D:\Migrate\Test1\Test1\1.txt
D:\Migrate\Test1\Test1\2.txt
D:\Migrate\Test1\Test1\3.txt
D:\Migrate\Test1\Test1\4.txt
D:\Migrate\Test1\Test1\Test2\1.txt
D:\Migrate\Test1\Test1\Test2\2.txt
D:\Migrate\Test1\Test1\Test2\3.txt
Destination:
D:\Migrate\Test1\Test1\1.txt
D:\Migrate\Test1\Test1\3.txt
D:\Migrate\Test1\Test1\Test2\1.txt
D:\Migrate\Test1\Test1\Test2\3.txt
MissingFile.txt:
D:\Migrate\Test1\Test1\2.txt
D:\Migrate\Test1\Test1\4.txt
D:\Migrate\Test1\Test1\Test2\2.txt
Note: Sub-Folder also need to be created (if it doesnt exsist.)
 
Thank you!!!
 
#1
    59cobalt

    • Total Posts : 977
    • Scores: 91
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: online
    Re:Need Script to compare 2 text file and copy files Wednesday, December 14, 2011 7:44 AM (permalink)
    0
    You need robocopy, not a script. And next time don't post in a "Post a VBScript" forum unless you have a VBScript to post.
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 2 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9