Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,307 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 792 people online right now. Registration is fast and FREE... Join Now!




Overwrite My.Computer.Network.DownloadFile

 
Reply to this topicStart new topic

Overwrite My.Computer.Network.DownloadFile, How do i have it overwrite?

Jarrhed
1 Jan, 2009 - 09:44 PM
Post #1

D.I.C Head
**

Joined: 1 Jan, 2009
Posts: 61


My Contributions
How do I have it overwrite the file if it already exists with My.Computer.Network.DownloadFile?

Here's the code for where its needed but, this is not all of the code
CODE

My.Computer.Network.DownloadFile _
                       ("http://mirror.cc.vt.edu/pub/mozilla//seamonkey/releases/1.1.14/seamonkey-1.1.14.en-US.win32.installer.exe", _
                       "C:\Program Files\Warez-One Package Manager\Downloaded Packages\seamonkey-1.114.en-US.win32.installer.exe")


User is offlineProfile CardPM
+Quote Post


Core
RE: Overwrite My.Computer.Network.DownloadFile
1 Jan, 2009 - 09:57 PM
Post #2

using DIC.Mod.Core;
Group Icon

Joined: 8 Dec, 2008
Posts: 1,780



Thanked: 139 times
Dream Kudos: 350
Expert In: Software Development, Software Testing/Debugging

My Contributions
You just have to use the System.IO.File.Exists(fileName) statement to verify if the file is already present in the specified local path (it will return a Boolean value: True - exists; false - doesn't exist). Then only download if the return value of the above mentioned statement is False.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 06:55PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month