Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. What's the Batch Command for Starting a Java Applet?

What's the Batch Command for Starting a Java Applet?

Scheduled Pinned Locked Moved IT & Infrastructure
questioncsharpjavatools
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    That Asian Guy
    wrote on last edited by
    #1

    java MyClass.class in command prompt will start an application in the console window. How do I start an Applet in the default Applet window? Also, how do I run a command prompt script from a .net application (p/invoke???)? Thanks.

    L 1 Reply Last reply
    0
    • T That Asian Guy

      java MyClass.class in command prompt will start an application in the console window. How do I start an Applet in the default Applet window? Also, how do I run a command prompt script from a .net application (p/invoke???)? Thanks.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      That Asian Guy wrote:

      how do I run a command prompt script

      You can launch a .bat file by calling Process.Start("xxx.bat"); :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Fixturized forever. :confused:


      T 1 Reply Last reply
      0
      • L Luc Pattyn

        That Asian Guy wrote:

        how do I run a command prompt script

        You can launch a .bat file by calling Process.Start("xxx.bat"); :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Fixturized forever. :confused:


        T Offline
        T Offline
        That Asian Guy
        wrote on last edited by
        #3

        [Message Deleted]

        L 1 Reply Last reply
        0
        • T That Asian Guy

          [Message Deleted]

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Hi, you can use Process.Start() to pass a command to CMD.EXE (or you could use P/Invoke to call ShellExecuteEx) :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Fixturized forever. :confused:


          T 1 Reply Last reply
          0
          • L Luc Pattyn

            Hi, you can use Process.Start() to pass a command to CMD.EXE (or you could use P/Invoke to call ShellExecuteEx) :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            Fixturized forever. :confused:


            T Offline
            T Offline
            That Asian Guy
            wrote on last edited by
            #5

            ShellExecuteEx works, thanks. What about the command for running an applet?:confused:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups