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.
PF
>
>?SET("PRINTER", 2)
>
>and SET PRINTER?
>
>This does not change the Windows default printer, but it does direct VFP output towards the printer specified, which is maybe all you need.
(On an infant's shirt): Already smarter than Bush