Batch file 批处理文件以在剩余时间内将文件移动到另一个目录

Batch file 批处理文件以在剩余时间内将文件移动到另一个目录,batch-file,time,Batch File,Time,我需要batch file将文件移动到另一个目录,并知道在batch file窗口中完成文件传输的剩余时间 move /y %temp%\bigfile.exe d:\bigfile.exe the file will transfer after: ((但如果有外部文件,则必须是vbs或powershell,但如果vbs和powershell中没有代码,则我需要它在批处理文件窗口中显示剩余时间exe文件没有问题,但请给出我的示例如何使用它))如果您想知道复制文件的时间: move /y %t

我需要batch file将文件移动到另一个目录,并知道在batch file窗口中完成文件传输的剩余时间

move /y %temp%\bigfile.exe d:\bigfile.exe
the file will transfer after:

((但如果有外部文件,则必须是vbs或powershell,但如果vbs和powershell中没有代码,则我需要它在批处理文件窗口中显示剩余时间exe文件没有问题,但请给出我的示例如何使用它))

如果您想知道复制文件的时间:

move /y %temp%\bigfile.exe d:\bigfile.exe
Echo The file was transferred at: %time%

您可以使用
windowsapi
使用
bat/vbs
。这将使用进度条显示复制文件的剩余时间:

@echo off

set "$source=%temp%\bigfile.exe"
set "$destination=d:\"

if exist progress.vbs del progress.vbs
(echo Const ProgressBar = ^&H0^&
 echo strTargetFolder = "%$destination%"
echo Set objShell = CreateObject^("Shell.Application"^)
 echo Set objFolder = objShell.NameSpace^(strTargetFolder^)
echo objFolder.CopyHere "%$source%", ProgressBar) >Progress.vbs

call progress.vbs

否我想知道完成文件传输到d的剩余时间:\