问题
I am hoping to use a windows "send-to" .bat file to run a differential between two text files using the FC command line tool.
My current batch is: fc "%1" "%2" pause
All FC requires from the command line is FC file1 file2
I want to select two text files and run them through the batch file via send-to.
回答1:
If both files are in the same folder:
@fc "%~1" "%~2" & pause
来源:https://stackoverflow.com/questions/31639056/multiple-inputs-in-a-windows-batch-file-using-fc