

InterviewSolution
Saved Bookmarks
1. |
Solve : Creating Batch Files? |
Answer» <html><body><p>I would like to create a batch (.bat) file that would output and receive <a href="https://interviewquestions.tuteehub.com/tag/text-11613" style="font-weight:bold;" target="_blank" title="Click to know more about TEXT">TEXT</a> through one of my computers COM ports. Is this possible?Yes, but it may not do what you want.<br/>Study the <a href="https://interviewquestions.tuteehub.com/tag/mode-239384" style="font-weight:bold;" target="_blank" title="Click to know more about MODE">MODE</a> command to learn how to set the serial ports.<br/><br/>If you have a <a href="https://interviewquestions.tuteehub.com/tag/dial-950759" style="font-weight:bold;" target="_blank" title="Click to know more about DIAL">DIAL</a> up modem on the com1 port you would do this:<br/> echo ATZ >com1<br/>Which might not work if you had not already set the parameters with the MODE command.<br/>And you could send the contents of a com port to a file:<br/>copy con1 test.txt<br/>But it may hang if the com port never <a href="https://interviewquestions.tuteehub.com/tag/sends-1200607" style="font-weight:bold;" target="_blank" title="Click to know more about SENDS">SENDS</a> a control Z<br/><br/>Did you have something <a href="https://interviewquestions.tuteehub.com/tag/specific-250096" style="font-weight:bold;" target="_blank" title="Click to know more about SPECIFIC">SPECIFIC</a> in mind?<br/><br/><br/><br/></p></body></html> | |