I would have thought this was going to be a very simple task but I have been struggling with it for a couple of days now, and slightly frustrated! I am not very familiar with Windows batch scripts so please if you know the answer, keep it as simple as possible :)
Basically, I have a Windows Shutdown script (.bat file) in which I would like to know if two text files are the same (i.e. their content is exactly the same), and if so, perform a goto command (e.g. goto line10)
I can't figure out how to do this! Your help is much appreciated!
Without the goto:
fc /b file1 file2 > nul
if errorlevel 1 (
echo different
) else (
echo same
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With