Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 如何使用拖放文件夹运行命令行_Batch File_Drag And Drop - Fatal编程技术网

Batch file 如何使用拖放文件夹运行命令行

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

我在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://blablabla/announce 

怎么可能呢?

只需制作一个如下的批处理文件:

@echo off
mktorrent -l 21 -a http://blablabla/announce <%1>
pause
@echo关闭
mktorrent-L21-ahttp://blablabla/announce 
暂停

然后将文件夹放在批处理中。

您能按回答的主题填写吗