Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how to realize the function : set /p input value=: in Pure Dos  (Read 8062 times)

0 Members and 1 Guest are viewing this topic.

bidhan

    Topic Starter


    Starter

    how to realize the function : set /p input value=: in Pure Dos
    « on: December 16, 2008, 08:11:43 PM »
    command line : set /p input value=:  can be used in windows dos. but not in Pure dos.  And I typed set /?, looks like no /p parameters supported in my dos. So are there any other ways to realize this function in Pure dos? Thanks!
     

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: how to realize the function : set /p input value=: in Pure Dos
    « Reply #1 on: December 18, 2008, 05:02:56 AM »
    Quote
    command line : set /p input value=:  can be used in windows dos

    NT machines only.

    Quote
    So are there any other ways to realize this function in Pure dos?

    I believe the choice command arrived with MS-DOS 5 and would be the closest alternative to getting input from set. Choice allows for single character input only, but does have a timer, which it seems many NT OS owners would kill for. ;D

    Another alternative would be to write your own command using the debug utility.

    Also try checking the net for programs input.com or answer.com. These were two 80's era programs that allowed for user input at the console.

     8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    bidhan

      Topic Starter


      Starter

      Re: how to realize the function : set /p input value=: in Pure Dos
      « Reply #2 on: December 18, 2008, 09:57:18 PM »
      Actually, I want to store the keyboard input value into a variable, so I can use it in my bat file. Looks like input.com cannot realize that.   :)

      bidhan

        Topic Starter


        Starter

        Re: how to realize the function : set /p input value=: in Pure Dos
        « Reply #3 on: December 18, 2008, 11:02:07 PM »
        Got it using Input.com!! ;D
        Thanks Sidewinder for help!!

        diablo416



          Hopeful
          • Experience: Beginner
          • OS: Unknown
          Re: how to realize the function : set /p input value=: in Pure Dos
          « Reply #4 on: December 19, 2008, 01:18:28 PM »
          can you please attach a copy of input.com to this post thanks

          Sidewinder



            Guru

            Thanked: 139
          • Experience: Familiar
          • OS: Windows 10
          Re: how to realize the function : set /p input value=: in Pure Dos
          « Reply #5 on: December 20, 2008, 06:43:47 AM »
          You can find the source code for a program similar to input.com here. For all I know it may even be the original code for input.com. ;D

          Your OS is not posted, but I'm fairly certain the debug utility was distributed with the earliest releases of DOS. Follow the directions on how to assemble the code.

          Program only works in a MS-DOS Prompt window and not a Command Prompt window. Input is limited to a single word; a string with embedded spaces seems to break the code.

          Are we going back to the future? 8)
          The true sign of intelligence is not knowledge but imagination.

          -- Albert Einstein

          Dias de verano

          • Guest
          Re: how to realize the function : set /p input value=: in Pure Dos
          « Reply #6 on: December 20, 2008, 08:56:09 AM »
          Personally I would have used QBasic.