SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Stop using cmd

  1. #1
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Stop using cmd

    Excuse me, How is "Stoping a program using cmd"?
    -1/2=999?

  2. #2
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe restart Huh!
    -1/2=999?

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm afraid I don't understand your question, borna. Could you state it more clearly?
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  4. #4
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure, If I use cmd for compiling/running a java file, and it waits for client to enter some line as input [I could provide some code, if required] then what should I do then?

    Second, what should I do if I clicked on an Executable Jar file and if started [for example a jar file which runs a batch file] then how to stop? The problem is that no batch file opens just the command inside it will be run [via clicking on jar file].
    -1/2=999?

  5. #5
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm still having a hard time understanding your questions, so forgive me if the answers I give don't solve your problem.

    Quote Originally Posted by borna
    Sure, If I use cmd for compiling/running a java file, and it waits for client to enter some line as input [I could provide some code, if required] then what should I do then?
    If what you're asking is how to terminate a Java program that is waiting for user input at the command prompt, under Windows you can usually do this by hitting Ctrl-C. If that doesn't work, hit Ctrl-Alt-Del to open the Windows Task Manager, then on the Processes tab, find the java.exe or javaw.exe process that corresponds to your program, right click it, and select the option to terminate the process.

    Second, what should I do if I clicked on an Executable Jar file and if started [for example a jar file which runs a batch file] then how to stop? The problem is that no batch file opens just the command inside it will be run [via clicking on jar file].
    Again, using the Windows Task Manager to terminate the Java process is probably your best bet, here.
    Kevin Yank
    CTO, sitepoint.com
    I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
    Baby’s got back—a hard back, that is: The Ultimate CSS Reference

  6. #6
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, it would work in any case.
    -1/2=999?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •