-
Starting Programs on the computer
Hello,
I'm wondering if there's a way to start a program or game on the user's computer from an applet, or for that matter, any Web language.
-
Please let me know if you know, because there's a group of people expecting me to do something and this is the deciding factor in it really :P
-
ill look for you but i dont think that is since it is possibale that peole with exploit something like that
-
Yeah, I was afraid of that... certainly there is some way though, how else would MSN have done it?
-
When you say how did MSN it, does it launch a e-mail program?
-
You can use this methos to invoke an external application in JAVA.
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+"freecell.exe");
-
Does that work in an applet?
-
-
applet
Hi. To run applications outside the JVM (notepad.exe,paint.exe) use this:
Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " +
"notepad.exe");
Note that this is just for Windows.
But Applets have restrictions and you cant do this. To solve this problem youll need to pack your applet in a jar file and sign it with the jar signer tool.
Similar Threads
-
By kruane in forum VB Classic
Replies: 1
Last Post: 10-24-2005, 01:04 PM
-
Replies: 1
Last Post: 01-09-2002, 10:42 AM
-
By Matt in forum VB Classic
Replies: 2
Last Post: 12-26-2001, 12:49 AM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks