VB.NET和FTP自动更新 [英] VB.NET and FTP Auto Update

查看:94
本文介绍了VB.NET和FTP自动更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个能够自动更新自己的应用程序

来自FTP服务器。


我希望能够确定哪个版本的应用程序更新,

当前正在运行的应用程序或在FTP服务器上找到的应用程序(.msi文件)。

我的想法是查看用于.msi文件的FTP服务器,并将其日期

与当前运行的应用程序的日期戳进行比较,然后仅在新版本运行应用程序时才下载




如何获取当前正在运行的应用程序的信息,例如

其文件日期戳?


任何欢迎提出建议。


问候,


-

Dino Buljubasic

软件开发人员
http://rivusglobal.com

解决方案

文件日期戳应该是un可靠...获取版本信息...


plus,有更好的方式来做更新文件而不是文件戳(加上

防火墙问题.. )

" Dino M. Buljubasic" <二************* @ rivusglobal.com>在消息中写道

新闻:EL ******************* @ news1.telusplanet.net ..。

我正在构建一个能够从FTP服务器自动更新
的应用程序。

我希望能够确定哪个版本的应用程序更新,
当前正在运行的那个或在FTP服务器上找到的那个(.msi文件)。
我的想法是查看FTP服务器的.msi文件,并将其日期
与日期戳进行比较当前正在运行的应用程序然后下载
只有在运行应用程序时才更新。

如何获取有关当前正在运行的应用程序的信息,例如
其文件日期邮票?

欢迎任何建议。

问候,

- Dino Buljubasic
软件开发人员 http://rivusglobal.com



您可以在System.Reflection

名称空间中使用


获取大会的版本。AssemblyInformationalVersionAttribute.Informationa lVersion Property

很多信息。你可以访问一个sql server或者文本文件吗

比较文件的最新版本吗?


你可以使用webclient来(我认为)make连接到FTP。它只是一个

的痛苦有时...


我讨厌FTP。

Dino M. Buljubasic <二************* @ rivusglobal.com>在留言中写道

news:mc ******************* @ news1.telusplanet.net ..。

感谢您的回复。

如何获取版本号以及如何创建版本号?

有什么更好的方法?如果您正在尝试从Web服务器进行自动更新,则不适用于我,我必须从FTP服务器进行更新。

问候,
CJ Taylor <克拉***** @ mortonwelding.com>在消息中写道
新闻:Oi ************* @ TK2MSFTNGP10.phx.gbl ...

文件日期标记相当不可靠......获取版本信息...

此外,还有更好的方法来进行实时更新而不是文件戳(加上
防火墙问题..)

Dino M. Buljubasic <二************* @ rivusglobal.com>在消息中写道
新闻:EL ******************* @ news1.telusplanet.net ..。

我正在建设一个应用程序将能够从FTP服务器自动更新




我希望能够确定哪个版本应用程序是


更新,

当前正在运行的一个或在FTP服务器上找到的一个( .msi


文件)。我的想法是查看FTP服务器上的.msi文件并将其日期与当前运行的应用程序的日期戳进行比较,然后仅在新版本运行应用程序时才下载该版本。

如何我可以获得有关当前正在运行的应用程序的信息,例如其文件日期戳吗?

欢迎任何建议。

问候,

-
Dino Buljubasic
软件开发人员
http://rivusglobal.com





在MSDN上查找.NET应用程序块。你可以下载一些

的代码。


HTH。


" CJ Taylor" <克拉***** @ mortonwelding.com>在消息中写道

新闻:eM ************** @ tk2msftngp13.phx.gbl ...

你可以得到版本来自你的程序集中的System.Reflection
命名空间与

AssemblyInformationalVersionAttribute.Informationa lVersion属性

很多信息。你可以访问一个SQL Server或文本文件来比较文件的最新版本吗?

你可以使用webclient(我认为)建立与FTP的连接。它有时只是痛苦......

我讨厌FTP。

Dino M. Buljubasic <二************* @ rivusglobal.com>在消息中写道
新闻:mc ******************* @ news1.telusplanet.net ..。

谢谢你的支持回复。

如何获取版本号以及如何创建版本号?

有什么更好的方法?如果您正在尝试从Web服务器进行自动更新,则不适用于我,我必须从FTP服务器进行更新。

问候,
CJ Taylor <克拉***** @ mortonwelding.com>在消息中写道
新闻:Oi ************* @ TK2MSFTNGP10.phx.gbl ...

文件日期标记相当不可靠......获取版本信息...

此外,有更好的方法来进行实时更新,而不是filestamps
(加上防火墙问题..)

Dino M. Buljubasic <二************* @ rivusglobal.com>写在
消息新闻:EL ******************* @ news1.telusplanet.net ..
>我正在构建一个应用程序,它将能够自动
自我更新
>来自FTP服务器。
>
>我希望能够确定哪个版本的应用程序更新,
>当前正在运行的一个或在FTP服务器上找到的一个(.msi


文件)。

>我的想法是查看FTP服务器的.msi文件并比较


其日期

>使用当前运行的应用程序的日期戳,然后


下载

>只有在运行应用程序时更新才会发布。
>
>如何获取有关当前正在运行的应用程序


的信息,例如

>它的文件日期戳?
>
>欢迎任何建议。
>
>问候,
>
> -
> Dino Buljubasic
>软件开发人员
> http://rivusglobal.com
>
>





I am building an applicatin that will be able to automatically update itself
from an FTP server.

I''d like to be able to determine which version of application is newer, the
one currently running or the one found on the FTP server (the .msi file).
My idea is to look at the FTP server for an .msi file and compare its date
with the date stamp of the application currently running and then download
the release only if it is newer then running application.

How can I get the information about currently running application such as
its file date stamp?

Any suggestions are welcome.

Regards,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

解决方案

File date stamp would be rather unreliable... get the version info...

plus, there a lot better ways to do live updaters than filestamps (plus
firewall problems..)
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:EL*******************@news1.telusplanet.net.. .

I am building an applicatin that will be able to automatically update itself from an FTP server.

I''d like to be able to determine which version of application is newer, the one currently running or the one found on the FTP server (the .msi file).
My idea is to look at the FTP server for an .msi file and compare its date
with the date stamp of the application currently running and then download
the release only if it is newer then running application.

How can I get the information about currently running application such as
its file date stamp?

Any suggestions are welcome.

Regards,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com



You can get the version from your Assembly in the System.Reflection
namespace with the

AssemblyInformationalVersionAttribute.Informationa lVersion Property

Lot of information. can you have access to a sql server or text file to
compare latest versions of the file?

you can use a webclient to (I think) make connection to FTP. its just a
pain sometimes...

I hate FTP though.
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:mc*******************@news1.telusplanet.net.. .

Thank you for your reply.

How can I get version number and how to create one?

What is the better way? If you are reffering to auto update from a Web
Server, it is not applicable to me, I have to do it from an FTP server.

Regards,

"CJ Taylor" <ct*****@mortonwelding.com> wrote in message
news:Oi*************@TK2MSFTNGP10.phx.gbl...

File date stamp would be rather unreliable... get the version info...

plus, there a lot better ways to do live updaters than filestamps (plus
firewall problems..)
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:EL*******************@news1.telusplanet.net.. .

I am building an applicatin that will be able to automatically update


itself

from an FTP server.

I''d like to be able to determine which version of application is

newer,

the

one currently running or the one found on the FTP server (the .msi


file). My idea is to look at the FTP server for an .msi file and compare its date with the date stamp of the application currently running and then download the release only if it is newer then running application.

How can I get the information about currently running application such as its file date stamp?

Any suggestions are welcome.

Regards,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com





Look up .NET Application Blocks on MSDN. You can download some code that
does this.

HTH.

"CJ Taylor" <ct*****@mortonwelding.com> wrote in message
news:eM**************@tk2msftngp13.phx.gbl...

You can get the version from your Assembly in the System.Reflection
namespace with the

AssemblyInformationalVersionAttribute.Informationa lVersion Property

Lot of information. can you have access to a sql server or text file to
compare latest versions of the file?

you can use a webclient to (I think) make connection to FTP. its just a
pain sometimes...

I hate FTP though.
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:mc*******************@news1.telusplanet.net.. .

Thank you for your reply.

How can I get version number and how to create one?

What is the better way? If you are reffering to auto update from a Web
Server, it is not applicable to me, I have to do it from an FTP server.

Regards,

"CJ Taylor" <ct*****@mortonwelding.com> wrote in message
news:Oi*************@TK2MSFTNGP10.phx.gbl...

File date stamp would be rather unreliable... get the version info...

plus, there a lot better ways to do live updaters than filestamps (plus firewall problems..)
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message news:EL*******************@news1.telusplanet.net.. .
> I am building an applicatin that will be able to automatically update itself
> from an FTP server.
>
> I''d like to be able to determine which version of application is newer, the
> one currently running or the one found on the FTP server (the .msi


file).

> My idea is to look at the FTP server for an .msi file and compare

its date

> with the date stamp of the application currently running and then


download

> the release only if it is newer then running application.
>
> How can I get the information about currently running application

such as

> its file date stamp?
>
> Any suggestions are welcome.
>
> Regards,
>
> --
> Dino Buljubasic
> Software Developer
> http://rivusglobal.com
>
>





这篇关于VB.NET和FTP自动更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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