获得冠军的wget远离(并保持我自己的) [英] Get the wget title away(and keep my own)

查看:151
本文介绍了获得冠军的wget远离(并保持我自己的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个批处理文件,它的内容这个code:

I have a batchfile and it contents this code:

Title Updater
timeout /t 5 /nobreak
wget -q -OUpdate.zip https://www.dropbox.com/s/e9q3ssvhitsatbq/Update.zip --no-check-certificate

标题更新是表示第一五秒钟,然后当它开始下载,它变成一个wget的称号。
这里。看看(我几乎完成计划的线框图):

The title "Updater" is showing the first five seconds and then when it starts to download, it changes to a wget title. Here. Take a look(a pictuer of my almost-complete program).:

我要的是保持了更新的称号。

All I want is to keep the "Updater" title.

可能有人帮助我吗?

编辑:
这是在图片上显示的整个code。全部由我自己写的(不要问我为什么它是这样写的,不要去抢,或短,因为它的工作原理事情是这样的!):

This is the whole code shown on the picture. All written by myself(Don't ask me why it is written this way! Do not try to steal it or shorter it, because it works the way it is!):

-source删除 -

-SOURCE REMOVED-

推荐答案

这可能不是你正在寻找完美的解决方案,但如果你想一个'速战速决',那么这可以帮助你。

This might not be the perfect solution you are looking for, but if you want a 'quick fix', then this could help you out.

如果您简单地改变这code

if you simply change this code

:continue1
cls
Title Downloading...
FOR /F "usebackq tokens=*" %%A IN (`wget -S --spider --no-check-certificate %URL% 2^>^&1 ^| FINDSTR "Content-Length: "`) DO (
    SET SIZE=%%A
)

:continue1
cls
FOR /F "usebackq tokens=*" %%A IN (`wget -S --spider --no-check-certificate %URL% 2^>^&1 ^| FINDSTR "Content-Length: "`) DO (
    SET SIZE=%%A
)
Title Downloading...

然后标题将显示下载

这样做的缺点速战速决是wget的标题会显示一秒钟的一小部分。

The downside to this quick fix is that the wget title will be displayed for a fraction of a second.

希望这有助于你出去。

这篇关于获得冠军的wget远离(并保持我自己的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆