I am a novice Developer, and have only just completed a pretty basic course in VB.net.
I am trying to do a straightforward file copy.
I want to take a file, eg c:\test.txt
and copy it straight to a com port eg COM1
This works well in DOS and I suppose I can do it using Shell if absolutely necessary, but I would like to do it in VB.
I have managed to get the file to copy perfectly, using
FileCopy ("c:\test.txt", "COM1")
I am monitoring my COM port using Free Serial Port Monitor http://www.serial-port-monitor.com/index.html, and the data is going through the same as if you do a DOS copy;
(eg: copy c:\test.txt com1:)
But VB crashing out with an error when it has sent the file, as per the screen shot below.
Does anyone have any ideas ?
Last edited by danweb; Jun 15th, 2007 at 07:14 AM.