Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Predicting resulting file names after using Copy File
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Predicting resulting file names after using Copy File
Divers
Thread ID:
00677126
Message ID:
00677126
Vues:
58
Is anyone willing to submit code or link to code, or discuss logic that can predict the resulting file name when a command using copy file can be used with all variations of wildcard and character combinations.

I am talking about a destination expresion that is not as simple as *.* or *.odb, etc...

For example the program might receive:
lcSource = "*.*"
lcDest = "P*.T*"

COPY FILE (lcSource) TO (lcDest)

OR
lcSource = "*.D??"
lcDest = "??V?*.?F?"

COPY FILE (lcSource) TO (lcDest)
OR
WHATEVER

I know I can do ADIR to obtain a list of files from the source. What would be the best way to predict the resulting file names for the specified destination expression.

Any positive comment will be appreciated
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform