Results 1 to 7 of 7

Thread: Batch File Input

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Batch File Input

    Is there a way to require the user of the batch file to input a certian text to continue on the in the program? then if it is correct do something, if it is wrong, do something else? Thanks in advance...
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Batch File Input

    The very definition of a batch file, is that the computer has no interaction with the user. Batch files are just for commands that the computer executes one after the other.. no user input is required.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Batch File Input

    You want a shell script, not a batch file.
    What shell are you using?

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Batch File Input

    What do you mean, I decided to try something else... Look here
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Batch File Input

    Are you using C++ for this app?

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2007
    Location
     
    Posts
    453

    Re: Batch File Input

    ummmm. look at the link... :P
    Haikus are easy.
    But sometimes they don't make sense.
    Refrigerator.

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Batch File Input

    There are a few programs (ask.com, number.com, input.com) that can be called from a batch file and they return a numeric result which can be tested as an error code.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

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



Click Here to Expand Forum to Full Width