Quote:
Originally posted by rogerbo
Hehe what kind of printer are you using ??
the com ports are Serial ports used for Modems, Mouses, Cammeras and so on on the older PCs.
Printer normaly do run Paralell over lpt ports and as today most is run through UBS ports there is not that much use for the com ports anyway LOL.
|
Well I did say it wasn't exactly how it happened
Try renaming a text file on your pc to "com1.txt" and it won't let you because its an illegal file name.
In VB you can look for the existence of a file like this
LookForFile$ = DIR("somefile.txt")
if "somefile.txt" exists then LookForFile$ would be set to "somefile.txt" otherwise is would be set to an empty string .. LookForFile$ = ""
Now if you try the following
LookForFile$ = DIR("com1.txt")
LookForFile$ = "com1" even though there is no such file as "com1.txt"
My program would then start to open "com1" for read write access because it thought the file existed and as far as I can tell started streaming data to the port "com1" (I thought that was the printer port but its not its "lpt1")
Its just a stupid one off domain name, its never happened before and I've spiderd hundreds of thousands of pages.