Results 1 to 5 of 5
  1. #1
    AlexGraal is offline Señor Member
    Join Date
    Jan 2014
    Posts
    184
    Rep Power
    0

    Default Command Prompts Question

    I know that this is a Java Forum, but I was hoping that somebody here could direct me toward the right resource.

    I'm working on a couple of different things in a couple of different languages. It'd be really handy if I could define a function for my command prompt to open this, this, and that when I type "java" or something else, something else, and that when I type "python" or "octave" or "html" or etc.

    Does anybody know how I can go about doing this?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,890
    Rep Power
    25

    Default Re: Command Prompts Question

    Use a script or batch file.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Command Prompts Question

    This has to be the most vague problem description this week. "to open this, this and that" - what!?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,773
    Blog Entries
    7
    Rep Power
    21

    Default Re: Command Prompts Question

    As Norm already wrote: use a shell and a script or even a dedicated scripting language (you seem familiar with Python but Java like scripting languages also exist (e.g. BeanShell)).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    AlexGraal is offline Señor Member
    Join Date
    Jan 2014
    Posts
    184
    Rep Power
    0

    Default Re: Command Prompts Question

    Thanks Norm and JosAH.

    @Gimbal - Obviously, what is being opened doesn't matter. Which is why I used this this and that. I was simply asking for the language to do this with. I thought that was obvious. I guess not.

Similar Threads

  1. Command line menu question
    By Gagnrath in forum New To Java
    Replies: 5
    Last Post: 07-29-2013, 09:52 PM
  2. Command line question
    By dougie1809 in forum New To Java
    Replies: 1
    Last Post: 03-09-2012, 02:40 PM
  3. Letting my program command the command prompt
    By Smokey. in forum Threads and Synchronization
    Replies: 4
    Last Post: 03-30-2011, 12:34 AM
  4. question with command prompt and Runtime.exec()
    By mosquetero in forum New To Java
    Replies: 3
    Last Post: 08-11-2009, 01:08 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 01:23 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
  •