Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming Paths Automatically
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00877047
Message ID:
00877054
Vues:
11
This message has been marked as the solution to the initial question of the thread.
REPLACE filepath with STRTRAN(filepath , "U:\", "U:\QuestPDM\") ;
   FOR filepath <> "U:\QuestPDM\"
>I have a table with 7000 + records in. One of the fields is named path. Stored in this field is a path to where a file is. A typical list of the dir would read:
>
>U:\neil\neil.png
>U:\neil\peter.png
>U:\data\data.png
>U:\reports\report.frx
>
>Whe have added a new parent directory in and moved all the files into this directory. therefore I would like to change the path so the following above would read:
>
>U:\QuestPDM\neil\neil.png
>U:\QuestPDM\neil\peter.png
>U:\QuestPDM\data\data.png
>U:\QuestPDM\reports\data\report.frx
>
>I basically want to precede the beginning of the path with QuestPDM. Can anybody help me in how to do this.
>
>Many Thanks
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform