Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code to remove spaces in filenames?
Message
De
16/05/2009 13:15:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01400252
Message ID:
01400253
Vues:
107
This message has been marked as the solution to the initial question of the thread.
Never use macro (&) to reference a filename, use a name expression instead! It's faster and safer.
rename (gcTableName) To c:\temp.xdbf
>i am trying to rename any file that is selected by operator and call it FILE.dbf - from there it is processed.
>PROBLEM: when there is a space in the file name "This file.xls" i get error message 'command is missing required clause'
>see below code
>is there a simple code to remove spaces in filenames?
>
>thanks for help
>k
>
>gcTableName = GETFILE('dbf', 'Open Table:')
>rename &gcTableName To c:\temp.xdbf &&& here is where i get error message
>erase *.dbf
>rename c:\temp.xdbf To c:\File.dbf
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform