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

Author Topic: MS-DOS batch file  (Read 4536 times)

0 Members and 1 Guest are viewing this topic.

gimini75

    Topic Starter


    Newbie

    MS-DOS batch file
    « on: April 06, 2009, 10:19:21 AM »
    Hi

    I want your help I want to write a batch file to send step by step line of a text file which contains ASCII data to a motor stepper driver through the serial port, and then wait till the confirmation come back from the stepper driver "S" and so on till all the text file being sent.

    Any query, I will supply more information, I have attached my EXCEL file which I want to convert it (CVS) file and sent it to the stepper driver.

    Thanks for your help

    Dias de verano

    • Guest
    Re: MS-DOS batch file
    « Reply #1 on: April 06, 2009, 11:11:24 AM »
    I have attached my EXCEL file

    Where? In any case, batch is probably not the best way to do this. Do you mean real MS-DOS or Windows command?


    macdad-



      Expert

      Thanked: 40
      Re: MS-DOS batch file
      « Reply #2 on: April 06, 2009, 11:17:58 AM »
      Hi

      I want your help I want to write a batch file to send step by step line of a text file which contains ASCII data to a motor stepper driver through the serial port, and then wait till the confirmation come back from the stepper driver "S" and so on till all the text file being sent.

      Any query, I will supply more information, I have attached my EXCEL file which I want to convert it (CVS) file and sent it to the stepper driver.

      Thanks for your help

      This is beyond the capabilities of Batch...Visual Basic  ;)
      If you dont know DOS, you dont know Windows...

      Thats why Bill Gates created the Windows NT Family.

      Dias de verano

      • Guest
      Re: MS-DOS batch file
      « Reply #3 on: April 06, 2009, 11:29:40 AM »
      This is beyond the capabilities of Batch...Visual Basic  ;)

      Not in MS-DOS, unless you mean VB 1.0 for DOS. More likely have to be QBasic.

      macdad-



        Expert

        Thanked: 40
        Re: MS-DOS batch file
        « Reply #4 on: April 06, 2009, 11:31:22 AM »
        Depending upon if he means CMD or Dos itself.
        If you dont know DOS, you dont know Windows...

        Thats why Bill Gates created the Windows NT Family.

        Dias de verano

        • Guest
        Re: MS-DOS batch file
        « Reply #5 on: April 06, 2009, 11:36:27 AM »
        Depending upon if he means CMD or Dos itself.

        The title says "MS-DOS batch file" and the post refers to the serial port, which says "MS-DOS" to me.

        macdad-



          Expert

          Thanked: 40
          Re: MS-DOS batch file
          « Reply #6 on: April 06, 2009, 11:56:59 AM »
          True...But still Batch is way out of this capability, QBasic would be the alternative.
          If you dont know DOS, you dont know Windows...

          Thats why Bill Gates created the Windows NT Family.

          squall_01



            Prodigy

            Thanked: 80
            Re: MS-DOS batch file
            « Reply #7 on: April 06, 2009, 12:03:26 PM »
            java sorry just being random
            Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

            If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

            Dias de verano

            • Guest
            Re: MS-DOS batch file
            « Reply #8 on: April 06, 2009, 12:36:25 PM »

            squall_01



              Prodigy

              Thanked: 80
              Re: MS-DOS batch file
              « Reply #9 on: April 06, 2009, 12:37:19 PM »
              In place of it like I said its random
              Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

              If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

              Dias de verano

              • Guest
              Re: MS-DOS batch file
              « Reply #10 on: April 06, 2009, 12:39:50 PM »
              In place of it like I said its random

              And how eactly does it help the OP to post your random thoughts?

              squall_01



                Prodigy

                Thanked: 80
                Re: MS-DOS batch file
                « Reply #11 on: April 06, 2009, 12:40:44 PM »
                This is beyond the capabilities of Batch...Visual Basic  ;)

                I am humoring him that is all.
                Windows 7 RC Tester.  Working on it.  Your monitor says etchasketch on the side!

                If I fall who is there to pick me up now.  I stand alone but I stand as the gaurdian for whom I wish to protect.  The sound of my blade utters my name as you fall.  For I shall not move.  For those that forsake the very people are wosres

                Geek-9pm


                  Mastermind
                • Geek After Dark
                • Thanked: 1026
                  • Gekk9pm bnlog
                • Certifications: List
                • Computer: Specs
                • Experience: Expert
                • OS: Windows 10
                Re: MS-DOS batch file
                « Reply #12 on: April 06, 2009, 05:36:37 PM »
                Back in the dark ages I used some form of Microsoft BASIC to read and write from serial ports. Almost any version of MS Basic will read and write the COM ports.
                But has he tested it user a terminal?
                Send out the codes manual, or cut and past?

                Dias de verano

                • Guest
                Re: MS-DOS batch file
                « Reply #13 on: April 07, 2009, 12:16:05 AM »
                There is all that baud rate, odd or even or no parity, start and stop bits stuff to know about and set up.

                gimini75

                  Topic Starter


                  Newbie

                  Re: MS-DOS batch file
                  « Reply #14 on: April 07, 2009, 02:03:31 AM »
                  Where? In any case, batch is probably not the best way to do this. Do you mean real MS-DOS or Windows command?


                  Hi

                  I mean cmd under windows command not MS-DOS

                  Thanks