Starting Programs on the computer


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 9 of 9

Thread: Starting Programs on the computer

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    4

    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.

  2. #2
    Join Date
    Nov 2006
    Posts
    4
    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

  3. #3
    Join Date
    Nov 2006
    Posts
    13
    ill look for you but i dont think that is since it is possibale that peole with exploit something like that

  4. #4
    Join Date
    Nov 2006
    Posts
    4
    Yeah, I was afraid of that... certainly there is some way though, how else would MSN have done it?

  5. #5
    Join Date
    Nov 2006
    Posts
    13
    When you say how did MSN it, does it launch a e-mail program?

  6. #6
    Join Date
    Dec 2005
    Location
    Bangalore
    Posts
    13
    You can use this methos to invoke an external application in JAVA.
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+"freecell.exe");

  7. #7
    Join Date
    Nov 2006
    Posts
    4
    Does that work in an applet?

  8. #8
    Join Date
    Dec 2005
    Location
    Bangalore
    Posts
    13
    First check it.

  9. #9
    Join Date
    Nov 2006
    Location
    México
    Posts
    3

    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

  1. Open WMP on client Computer ?
    By kruane in forum VB Classic
    Replies: 1
    Last Post: 10-24-2005, 02:04 PM
  2. Replies: 1
    Last Post: 01-09-2002, 11:42 AM
  3. Starting programs w/ a password
    By Matt in forum VB Classic
    Replies: 2
    Last Post: 12-26-2001, 01: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center