Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying a file to a local printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00415780
Message ID:
00415838
Vues:
25
>rv=CopyFile('I:\COMMON\LIMS\RUNLETER\RLCKLIST.PRN','LPT1:',0)
> (0 is returned)
>
>When I issued Getlasterror, I got 87 (which I think means Invalid Parameter, but I'm not sure).
>
>Now all of a sudden, it even fails when I passit LPT2: (and that's a captured printer port). That worked before. Don't know what's went bunk.
>
>Am I missing anything? I'm running Win98.

The declaration I use:

DECLARE SHORT CopyFile IN WIN32API STRING @, STRING @, INTEGER

works fine here; I have no idea why it doesn't work on your system. I've tested it on everything except Win95.

>
>Thanks Ed.
>
>Steve
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform