?
Solved

Operate DOS exe file by VB

Posted on 2003-03-05
5
Medium Priority
?
425 Views
Last Modified: 2008-01-16
I am using VB to receive data from COM2 and is trying to send this data through a DOS exe file which has be programmed to send data to COM1. This DOS exe file is used to send data with 3964R protocol. For using this DOS file, I need to press 5 , then Input a string, then Enter, and finally press 1 to send the string. The string is the data that I receive from COM2. I just can not use Appactivate and Sendkeystroke to accompolish above action.
0
Comment
Question by:hueihong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 

Expert Comment

by:krustDog
ID: 8073688
I'd use VB to call a windows scripting file.  you can write them in vbscript or jscript
0
 

Author Comment

by:hueihong
ID: 8074256
I am not really clear with calling a windows scripting file. Could you make it more specific?
0
 

Accepted Solution

by:
krustDog earned 200 total points
ID: 8074536
I'm not sure if you've used .wsh files or (vbs, .js) files.

Sounds like you haven't used them before.

you can call your .vbs file in dos

>cscript yourfile.vbs <param1>

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsconwshbasics.asp

go here to check it out.  You can run your application and wait for text and have input windows and all that.  You might want to write the whole thing in this
0
 

Expert Comment

by:CleanupPing
ID: 9447347
hueihong:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Simple Linear Regression
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question