1.

Solve : MS-DOS batch file?

Answer»

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 helpQuote from: gimini75 on April 06, 2009, 10:19:21 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?

Quote from: gimini75 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

This is beyond the capabilities of Batch...Visual Basic Quote from: macdad- on April 06, 2009, 11:17:58 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.
Depending upon if he means CMD or Dos itself.Quote from: macdad- on April 06, 2009, 11:31:22 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.
True...But still Batch is way out of this capability, QBasic would be the alternative.java sorry just being randomQuote from: squall_01 on April 06, 2009, 12:03:26 PM
java sorry just being random

java for MS-DOS?

http://ledos.sourceforge.net/

In place of it like I said its randomQuote from: squall_01 on April 06, 2009, 12:37:19 PM
In place of it like I said its random

And how eactly does it help the OP to post your random thoughts? Quote from: macdad- on April 06, 2009, 11:17:58 AM
This is beyond the capabilities of Batch...Visual Basic

I am humoring him that is all.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?
There is all that baud rate, ODD or even or no parity, start and stop bits stuff to know about and set up.Quote from: Dias de verano on April 06, 2009, 11:11:24 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


Discussion

No Comment Found