Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming Paths Automatically
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00877047
Message ID:
00877054
Views:
12
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform