Batch file 如何使用拖放文件夹运行命令行
我在bat文件中有以下命令行:Batch file 如何使用拖放文件夹运行命令行,batch-file,drag-and-drop,Batch File,Drag And Drop,我在bat文件中有以下命令行: mktorrent -l 21 -a http://blablabla/announce <foldertest> mktorrent-l21-ahttp://blablabla/announce 但我打算将文件夹拖动到文件中,而不是编辑不同的文件夹名称: mktorrent -l 21 -a http://blablabla/announce <drag and drop here> mktorrent-l21-ahttp://b
mktorrent -l 21 -a http://blablabla/announce <foldertest>
mktorrent-l21-ahttp://blablabla/announce
但我打算将文件夹拖动到文件中,而不是编辑不同的文件夹名称:
mktorrent -l 21 -a http://blablabla/announce <drag and drop here>
mktorrent-l21-ahttp://blablabla/announce
怎么可能呢?只需制作一个如下的批处理文件:
@echo off
mktorrent -l 21 -a http://blablabla/announce <%1>
pause
@echo关闭
mktorrent-L21-ahttp://blablabla/announce
暂停
然后将文件夹放在批处理中。您能按回答的主题填写吗