How i can download & Run a program from internet in visual C# ?? , without prompt a user?
please do you have some example
Printable View
How i can download & Run a program from internet in visual C# ?? , without prompt a user?
please do you have some example
PHP Code:using System.Net;
using System.Diagnostics;
//. ....
WebClient w = new WebClient();
Process p = new Process();
w.DownloadFile("http://www.hello.com/test.exe","C:\\\test.exe");
p.StartInfo = new ProcessStartInfo("C:\\\test.exe");
p.Start();
:confused: This source is in c ?
Didn't you want it in C#?
You can't really do this right now.
You will need to wait for the release of version 1.1 of the framework. MS changed the security defaults for executing winform applications from the web because there were some holes in the security. They promise to have this fixed in v1.1.
does the c:\\ need to have to \\?
of course...because \ is a special char..u cant put it alone...or u can do @"C:\"
sorry just found that out when i read my book!