Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CopyFile API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00454724
Message ID:
00455574
Vues:
54
>>This may be a limitation of CopyFile and embedded spaces only. Try surrounding the printer name with quotes. This was the way to get around it when using the Command prompt in the Dos/Win9X days.
>>
>Larry,
>
>I know what you mean, I run into this problem when trying to open a table in a folder under the program files folder. The space in the folder name is a pain. Anyway, how would I surround the printer name in quotes? Here is my current syntax:
>
>IF CopyFile('c:\temp\test.txt','\\servername\printer name',0) # 0
>
>Kind Regards,
>
>Mat

Try:

IF CopyFile('c:\temp\test.txt',['\\servername\printer name'],0) # 0

This will pass everything inside the [] to the CopyFile function. Maybe it will work (can't test it from my current location).
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform