Multiple inputs in a windows batch file using FC

2019-08-30 17:43发布

问题:

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