Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper way to copy a file to a parallel port
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00212568
Message ID:
00212687
Views:
39
Works fine....

Again, it works fine in VFP as well except that I get the error that the file cannot be created.....I've tried prn, lpt1, lpt1: ... I've tried with and without quotes.

but it works fine from DOS

Weird, huh?


>What happens when you go to DOS and issue
>COPY file.txt lpt1
>?
>
>
>
>>Thanks for the response Joseph,
>>
>>That didn't seem to work either....I tried it with the quotes and without the quotes. I still get the error that the file cannot be created.
>>
>>If you have any other ideas I'd love to hear them
>>
>>Paul
>>
>>>Try
>>>
>>>copy file file.txt to lpt1:
>>>
>>>Notice the colon.
>>>
>>>Joe
>>>
>>>
>>>>I have a utility that creates a text file and then copies this file to the parallel port by issuing the command "copy file 'file.txt' to 'lpt1'". This works fine because the barcode printer receives the file and prints the label properly. However, I get an error message that states the file cannot be created. I assume this error is because VFP cannot create a file called "lpt1"?
>>>>
>>>>Is there a better way to handle this scenario?
>>>>
>>>>Thanks,
>>>>Paul
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform