I have a txt file with the following format:
ServerName\Dir1\file1.pdf newfile1_test.txt newfile1 n
ServerName\Dir2\file2.pdf bestfile2_test.txt bestfile2 b
I want to write a batch script that does the following:
1. Read each line from the text file for a round of processing
1.1 Store each of the four strings of the line into 4 vars - source , destfile, destfolder, destpparentfolder
1.2 Check if destparentfolder exists on the C:/ of server2.If it doesn't, create it.
1.3 Check if destfolder exists under C:/destparentfolder. If it doesn't, create it.
1.4 Put the destfile in the C:/destparentfolder/destfolder.