在VB中怎么下载文件

来源:百度知道 编辑:UC知道 时间:2024/06/10 01:46:08
MSDN中这么解释的:
My.Computer.Network.DownloadFile _
("http://www.cohowinery.com/downloads/WineList.txt", _
"C:\Documents and Settings\All Users\Documents\WineList.txt")
我不懂,知道括号前半段是下载的网址,后半段是保存路径,那么这段代码放到哪个事件中呢?为什么老是提示 缺少 =
除了这种方法,inet控件怎么弄,详细的告诉我步骤,好的话我加分.谢谢
谢谢你的回答,能再详细点吗?
我试了不行啊,麻烦你详细点,我会追分的

改成
变量=xxxxxx("xxxx","xxxx")

xxxxxxx "xxxxx","xxxxx"

===============================
不贪你那几个分
不是不帮你写,你那个好像是vb.net的代码吧,我不会,我只会一点点vb6而已
按vb6的路子,你的代码应该是这样
dim 一个变量
一个变量=My.Computer.Network.DownloadFile "http://www.cohowinery.com/downloads/WineList.txt", " C:\Documents and Settings\All Users\Documents\WineList.txt")
或者不要变量
My.Computer.Network.DownloadFile "http://www.cohowinery.com/downloads/WineList.txt", "C:\Documents and Settings\All Users\Documents\WineList.txt"