General information
Category:
Windows API functions
YES!!
Thanks so much for your help Ed! That did it. I tried the same CopyFile syntax but just chose a queue on our server with a much shorter name and it worked great.
I do have a further question for you though, if you have the time and patience for it. 8?)
I tried (on the Win9x client) to use net use to connect lpt1 to the shortened queue:
net use lpt1 \\ntm_2001\dataproc
That returned the Error 53 message (network path can't be located). (Funny, cuz that network path worked fine for the CopyFile() function).
Since that didn't work, I instead captured lpt1 to dataproc. I then tried the CopyFile() function again with the following syntax:
? copyfile("c:\temp\rodd.txt","LPT1:",0)
However, this returns a 0 and GetLastError returns 87 again. Up to this point I've been assuming that LPT1 was a sort of system defined parm ... that the system used the string LPT1 as a parm to reference the actual port. Am I wrong? Do I explicitly have to set up a system variable LPT1 somewhere?
Once again, thanks for all your help! The whole issue of the length of the queue name was a major breakthrough!
Rodd
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only