Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy a file to an Empty Folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01101321
Message ID:
01101402
Vues:
10
Hi Naomi,

Excuse me, but I think that just posted part of the problem and part of solution.

The command COPY FILE doesn't work when the path has spaces, nor using the solution suggested by Jim (COPY FILE URV.DBF TO "C:\Documents and Settings\URV.DBF")

Then I created a Function that when I inform the path windows it returns me a path DOS for instance:

cDosPath = GetDosPath ("c:\program Visual files\MicroSoft FoxPro 9")

Supposing that I have installed Visual FoxPro 8 and Visual FoxPro 9 the returned path will be C:\PROGRA~1\MICROS~2, therefore a path valid DOS that being used in the command COPY FILE will work perfectly.

For instance:
COPY FILE URV.DBF TO ( GetDosPath("c:\program Visual files\MicroSoft FoxPro 9") + "\URV.DBF")

[]´S

Dionísio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform