Multiple inputs in a windows batch file using FC

爱⌒轻易说出口 提交于 2019-12-11 20:40:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!