I use this sort of command line in the batch files to backup data from my laptop to various external USB drives and also from one USB drive to another, using Robocopy:
Robocopy \ "D:\2TB Blue" /MIR /R:1 /W:1 /TEE /FFT /A-:SH
But, if I run that batch file on the same drive, e.g. D:, it'll dump a copy of D:\ to D:\2TB Blue, which is no use whatsoever.
Can anyone advise how to not run the batch file if the 'source' and 'destination' are on the same drive?
The Following Morning
So, I slept on it and worked it out: