I have written a 'COMP' line, COMP d:\osas80\data c:\open_sys_acc_soft_80_backup /d > osas_compare2.txt
The files have been backed up from my D drive to my C drive. The above line compares the files and I can see in the .txt file which ones are the same and which are different. What I really want is just a small report (on screen preferably) that will just tell me the number of files on the source and the number of files on the destination. I know I can tell the process to stop after so many wrong files, but the script needs to only tell the user that the backup is perfect, by letting them know that both directories have the same number of files and that they are all the same. My program does tell in the .txt file, but my example has 155 files and you have to scroll through the whole listing to see if they are all the same. Brevity is important, if successful the user can go on and do their processing, with a backup that can be restored if they have to.
The files have been backed up from my D drive to my C drive. The above line compares the files and I can see in the .txt file which ones are the same and which are different. What I really want is just a small report (on screen preferably) that will just tell me the number of files on the source and the number of files on the destination. I know I can tell the process to stop after so many wrong files, but the script needs to only tell the user that the backup is perfect, by letting them know that both directories have the same number of files and that they are all the same. My program does tell in the .txt file, but my example has 155 files and you have to scroll through the whole listing to see if they are all the same. Brevity is important, if successful the user can go on and do their processing, with a backup that can be restored if they have to.