Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.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
Redirect 将批处理文件内的移动/复制调用重定向到自己的应用程序_Redirect_Batch File - Fatal编程技术网

Redirect 将批处理文件内的移动/复制调用重定向到自己的应用程序

Redirect 将批处理文件内的移动/复制调用重定向到自己的应用程序,redirect,batch-file,Redirect,Batch File,我有一个复杂的批处理文件(在windows下),我们称它为bigmesss.bat。它产生了许多我想监视的操作(尤其是复制/移动操作)。我不想碰这个大烂摊子 是否可以将移动/复制调用重定向到我自己的应用程序或其他批处理文件 我尝试将move.bat文件放在bigmesss.bat旁边,但它更喜欢shell的移动。不接触bigmesss.bat是否可行?如果使用cmd.exe运行bigmesss.bat,则不可能。如下列文件所述: 如果命令名[例如,move,copy]未指定路径,则shell将尝

我有一个复杂的批处理文件(在windows下),我们称它为bigmesss.bat。它产生了许多我想监视的操作(尤其是复制/移动操作)。我不想碰这个大烂摊子

是否可以将移动/复制调用重定向到我自己的应用程序或其他批处理文件


我尝试将move.bat文件放在bigmesss.bat旁边,但它更喜欢shell的移动。不接触bigmesss.bat是否可行?

如果使用
cmd.exe运行
bigmesss.bat
,则不可能。如下列文件所述:

如果命令名[例如,
move
copy
]未指定路径,则shell将尝试将命令名与内部shell命令列表相匹配。如果找到匹配项,则执行内部命令

也许可以使用。看一看。它具有a)cmd.exe兼容性和b)。别名是,所以您可以使用

alias copy=C:\path\to\your\monitor\app
祝你好运