Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS Copy Command/VFP 6.0
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244498
Message ID:
00244608
Views:
49
>I'm migrating a FPD 2.5 app to VFP6. The product does a lot of printing using PCL escape sequences with laser printers. Before printing, any required soft fonts (.fnt) files are copied to the printer. This is being accomplished with "COPY /B file.fnt lpt1:". I've been able to replace this with "COPY FILE file.fnt TO \\printername" on NTWS4.0 SP3 but have been forced to continue the use of the DOS Copy command on Win9x platforms (the former syntax causes an error 'Cannot Create File'; Fox is treating the printer name like a network share). Using this command causes a DOS window to pop up on the screen during the copy process. My question is two-fold:
>
>1. Is there a better way to get the fonts to a printer (both local and network); i.e. an API call or 3rd party tool.
>
>2. If I'm stuck with the COPY command, how can I get it to run in a minimized DOS window. I've tried adjusting the properties of command.com and foxrun.pif files to run minimized. This had no effect. I was able to modify the PIF so that the DOS Window Caption reads 'Uploading Fonts...'
>
>The application is virtually finished and works great. The DOS window, however, takes away from some of the aesthetics.
>

Take a look at my FAQ entry on using the CopyFile() API call rather than the DOS COPY command or VFP COPY FILE command. You can also look at using my API_APPRUN class and XCOPY (COPY is an internal command, so running it without a command processor is troublesome) to run DOS commands without a DOS window. You can download API_APPRUN from here on UT.
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