![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Display Modes |
#16
|
|||
|
|||
![]()
Just an update.
This morning I was doing some more testing, and found out something : when just using "copy" a files (terminating) ctrl-Z is not send. For that the "/b" switch needs to be included. ("type" does send it though). While that works for COMMAND.COM (on DOS and XP) (the "copy com1 file" command terminates - without including the ctrl-Z in the file) XPs CMD still does not want to play ball. It stubbornly keeps stuck in both the "copy" and the "type" commands (and need to be task-managered outof it). @Herbert Using, as you suggested, a small DEBUG program on XP echoing received COM bytes to stdout until a terminating character (ctrl-Z) is received works. A caveat though: using CMD exiting such a COM style program on XP resets, for some reason, the datawidth to 5. That ofcourse means that shrinking the program by excluding the comports initialisation (allowing it to use whatever speed its currently set to isn't possible - unless the "mode com1" command is available and used in between. Talking about (subtile) changes throwing a wrench in something that shoud have been simple ... :-) Regards, Rudy Wieser |
Ads |
#17
|
|||
|
|||
![]()
On Fri, 21 May 2021 at 13:56:43, R.Wieser wrote
(my responses usually follow points raised): Herbert, But in real DOS, the "copy com1 file" should work. You got me there I'm afraid, I used the DOS w98 ran on. And although "copy com1 file" /looks/ to be working there, it , just as "type com1", does not know when to stop. Ctrl-C-ing outof it causes the file to be empty. :-\ [] You've already mentioned the /b switch. Have you played with /a? -- J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)[email protected]+H+Sh0!:`)DNAf Mike Jackson |\ _,,,---,,_ and Squeak /,`.-'`' -. ;-;;,_ Shame there's no snooze button [1998] |,4- ) )-,_..;\ ( `'- on a cat who wants breakfast zzz '---''(_/--' `-'\_) |
#18
|
|||
|
|||
![]()
John
Have you played with /a? Nope. To be honest, I was trying to get the whole file to the other side, and as "/b" did the job ... But I did just now. Hmm. Under XP it does not seem to make a difference if I use it on a single file or not. Ether way the ctrl-Z EOF, if there, is removed. Regards, Rudy Wieser |
#19
|
|||
|
|||
![]()
John,
Have you played with /a? .... But I did just now. Hmm. Under XP it does not seem to make a difference if I use it on a single file or not. Ether way the ctrl-Z EOF, if there, is removed. It took me a while to realize that it could maybe be usefull on the receiving end (if "/a" strips the ctrl-Z on sending it might also detect it while receiving and end the copy process). Alas, a test just now showed it made no difference (the copy process still gets stuck). Regards, Rudy Wieser |
|
Thread Tools | |
Display Modes | |
|
|