Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Serial read/write in batch file?

03 Oct 2012   #11

Various sevens, couple of xbuntus

Thanks Rich. I'm not sending an EOF as the data I'm sending isn't a file per se, the protocol is defined such that the requests are bound by 0x02 [Start] and 0x03 [End].

It's not as if the batch file is getting stuck writing to COM, it does complete with a "1 file(s) copied" echo, but the output file is zero length.

Thanks for the pointer on the /B flag, I didn't know about that. I will see where that takes me, cheers.


My System SpecsSystem Spec

 Serial read/write in batch file?

Thread Tools

Similar help and support threads
Thread Forum
Help please with making file write protected and read only.
Hi everyone. Hope I'm posting in the proper area. So what I need is to write protect a file on my laptop, so it is not overwritten. I'm not sure if I just right click it and make sure the file inside the folder is at "read only" does the job. I need to update my files but don't want this...
General Discussion
How can I write a batch file that opens a file in a program?
I wrote this batch file which does what I want it to do so far. @echo off "C:\Users\xxxxxx\Documents\HideTaskbar\HideTaskbar.exe" "C:\Program Files (x86)\VideoLANold\VLC\vlc.exe" "C:\Users\xxxxxx\Documents\HideTaskbar\ShowTaskbar.exe" exit
General Discussion
I want to read and write to a file but make it un-deletable
Hello I have a txt file located on my hard-drive that is susceptible of being deleted unknowingly. I want to be able to prevent the file from being deleted but still be able to read, write and copy the file. My attempts just lock the file up and prevents any use of its contents. All tips...
General Discussion
How do I write batch file to delete thousands of files
Was infected by the matsnu1 virus recently which encrypes and locks all your data files. Got all my files back by running matsnu1decryp.exe You need an original clean file before the virus struck for it to work out how to decrypt all your other files does does save the day. Down side is that you...
I want to write a batch file to get the DNS numbers behind a router.
I do a lot of internet troubleshooting and would like to put a simple batch file in customers computers that will let me see their DNS numbers when they are using a router. I currently do this from a command prompt for Comast: nslookup set type=ns It's been years since I...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:49.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App