Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FoxPro 2.6 DOS on NT Systems
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00142316
Message ID:
00142329
Views:
35
>I may be in the wrong place, but I thought I'd start here.
>
>I'm migrating a program written in FP2.6 for DOS from a Windows 95 box to NT 4.0. The Problem is the statement:
>
>SET PRINTER TO \\SPOOLER\N\S=MYSERVER\Q=HP5SI

You've included some code that is not a part of the FoxPro language - in fact, it's flags from a Novell capture statement. You're trying to print to the print queue \\MYSERVER\HP5SI. Your best bet will be to set up the printer and capture it to a port using the NT Add Printer dialog (Control Panel/Printers/Add Printer, and set the capture accordingly), assigning it to a port on a permanent basis. For example, if you've set up \\MYSERVER\HP5SI as the local device LPT4: through the add printer dialog, you could send printed output to the queue by:

SET PRINTER TO LPT4:

>
>does not work from NT, I get a message "Error writing to LPT1:". Works great in 95 or 98. I then tried externally calling the Novell capture and NT really does not like that one (CRASH!). Does anyone know how I can get the SET PRINTER TO statement to work or any other way in which I can redirect my printer output in Foxpro 2.6 DOS on an NT machine? Any help would be greatly appreciated!
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform