I have implemented feature in my tcl/tk project where a file is transferred using fcopy , from windows machine to a VM. Now the problem is the same file is getting copied repeatedly, which is quite unnecessary.
So I have to check if any file with same name already exists in the destination folder. If yes, then I have to make sure that the file content does not match, before aborting the copy procedure. I am aware that check-sum can be used for that but don't know how to implement checksum matching in TCL. Please guide.
md5 example
md5.tcl
output: