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

Author Topic: Creating Batch Files  (Read 4280 times)

0 Members and 1 Guest are viewing this topic.

Jackd

  • Guest
Creating Batch Files
« on: June 06, 2010, 11:05:54 PM »
I would like to create a batch (.bat) file that would output and receive text through one of my computers COM ports. Is this possible?

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: Creating Batch Files
« Reply #1 on: June 07, 2010, 01:04:09 AM »
Yes, but it may not do what you want.
Study the MODE command to learn how to set the serial ports.

If you have a dial up modem on the com1 port you would do this:
echo ATZ >com1
Which might not work if you had not already set the parameters  with the MODE command.
And you could send the contents of a com port to a file:
copy con1 test.txt
But it may hang if the com port never sends a control Z

Did you have something specific in mind?