Download with c#

  • Thread starter Thread starter Dakkar
  • Start date Start date
D

Dakkar

I want to write a program which will check the executable from a
remote adress and download it if it doesnt exist in the directory
that i want?
Is something like that possible with c# if it is how ?
 
The "BITS" tool, bitsadmin.exe (from microsoft.com) is excellent for the
purposes of downloading big files across the net, supports file servers or
http too..


Dakkar said:
I want to write a program which will check the executable from a
remote adress and download it if it doesnt exist in the directory
that i want?
Is something like that possible with c# if it is how ?
 
I made my code like this

public bool client()
{
if (!File.Exists(uopath +
@"\client.exe"))
{
this.txt1.Text += "Yeni Yama Yukleniyor";

File.Copy("http://www.sy.com/client.bak", uopath +
@"\client.exe");
try
{
return true;
}
catch
{
return false;
}
}
else
{
return true;
}

}


but its giving this error
[code:1:bf8f1495ff]
URI formats are not supported.
[/code:1:bf8f1495ff]

what should be the problem?
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*
 
Back
Top