Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Default Printer
Message
From
27/01/2000 13:50:06
 
 
To
27/01/2000 12:20:26
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00323190
Message ID:
00323705
Views:
24
>I'm trying to call external programs from a VFP Form. You can throw out any other ideas if you wish.
>
>I've inherited an old Clipper system, that I just don't have the time to rewrite. It is currently running on an old Novell network that is about to die a quick death. My boss wants it ported over to our NT network asap, so we don't have to worry about the Novell system crashing.
>
>There's maybe 20-25 individual Clipper programs that are run thru one of those old DOS Menu programs like Direct Access. The menu program calls batch files that typically remap drives, which is no problem with WSH, and run the Capture command to setup printers. Mimicking the Capture command is where I'm having problems right now.
>

CAPTURE in NetWare equates closely to NET USE port name \\ServerName\PrinterShareName

If you run under NT, the VDM has to be assigning default ports before Cripple < erm > could use them - there is no default device PRN. I'd look to see if the HKCU\Printers had an lpt1 subkey if the referenced current printer isn't there, because DOS can't reference other than by port name!
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
Next
Reply
Map
View

Click here to load this message in the networking platform