Solved

Problem using showUI in My.computer.Network.DownloadFile

Posted on 2008-10-01
3
804 Views
Last Modified: 2012-05-05
I wish to us My.computer.Network.DownloadFile to download files from the internet because it has a built in UI that shows progress and also has a [Cancel] button.

I am not looking for an alternative method to download as I have otherways already.  I'm simply looking to see if the following attached code can be made to work... Am I doing something wrong?

It flashes the UI and saves a zero byte file.
My.computer.Network.DownloadFile("http://youtube.com/get_video?video_id=VXd-Xhg_gx8&l=87&t=OEgsToPDskL9-WT-JifHhdMToQRMAZmD","C:\Users\Owner\Documents\FLV_Downloads\dog.flv","","",true,180000,true)

Open in new window

0
Comment
Question by:straubtm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
SameerJagdale earned 500 total points
ID: 22621775
hoping you are not on a wireless network. check this out:
http://en.allexperts.com/q/VB-NET-3306/Computer-Network-DownloadFile-hangs.htm
try making the showui as false, if it works. try lessening the timeout as well. :-)
0
 
LVL 1

Author Comment

by:straubtm
ID: 22629851
Hi Sameer,
None of the suggestions seems to make a difference.  I suspect it is simply a problem with the way the file is served up in this case..

I am goiing to resort to generating my own UI.
Tim
0
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22631289
Hi Tim,
I think youtube might have implemented some sort of security so that its not easy to download the file.
Thanks for the points.
-Sameer
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question