Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Old Times (rev)
Message
From
04/02/2004 15:40:27
 
 
To
04/02/2004 12:23:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00874039
Message ID:
00874161
Views:
10
>Hello:
>
>In old times when we used DOS we had a way to print files directly to printer using the following command:
>
>copy filename LPT1:
>or
>copy filename <\\server\printer>
>
>I am attempting unsuccessfuly to work in a simmilar way using the RUN command in VFP in a W2000 environment. Someone know how I can (at least) emulate this command?
>
>Thanks
>
>Efrain
>
>PS. I had to reformulate the question because the thread doesn't accept the word 'filename' in <>

You can use the FoxPro COPY FILE command instead of RUN:

COPY FILE filename TO \\server\printer

or if it's LPT or COM put a .DOS extension on the port name for example:

COPY FILE filename TO LPT1.DOS
Previous
Reply
Map
View

Click here to load this message in the networking platform