|
-
Dec 31st, 2002, 12:03 AM
#1
Thread Starter
Junior Member
Download & Run
How i can download & Run a program from internet in visual C# ?? , without prompt a user?
please do you have some example
-
Dec 31st, 2002, 11:02 AM
#2
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();
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
Dec 31st, 2002, 12:34 PM
#3
Thread Starter
Junior Member
This source is in c ?
-
Dec 31st, 2002, 02:45 PM
#4
Didn't you want it in C#?
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
Jan 4th, 2003, 03:57 PM
#5
Hyperactive Member
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.
-scott
he he he
-
Jan 4th, 2003, 04:58 PM
#6
Hyperactive Member
does the c:\\ need to have to \\?
-
Jan 4th, 2003, 06:49 PM
#7
yay gay
of course...because \ is a special char..u cant put it alone...or u can do @"C:\"
\m/  \m/
-
Jan 5th, 2003, 02:00 PM
#8
Hyperactive Member
sorry just found that out when i read my book!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|