How to compare stdin with a file in Windows batch?

292 Views Asked by At

I want to write a auto code judge on Windows. Now I need to compare the output of test program with correct output. I know I need to use "fc", but I don't know how to write a command like that in Unix:

./hello.out < 1.in | diff - 1.out

in Windows:

hello.exe < 1.in | fc ??? 1.out (How to write?)
0

There are 0 best solutions below