Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file names in table
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01461103
Message ID:
01461106
Views:
40
>Hi all, I want to copy of file names in a table. if i have folde, which have many file names with more than on ext. a.wav, a.jpg.
>
>should be copy a.wav in in wav filed and a.jpg in jpg filed
>thanks

Assuming you have a file name (without extension) in your table:
copy file (forcepath(m.lcSourceDir, alltrim(MyTable.File))  + ".*") to (forcepath(m.lcDestinationDir, alltrim(myTable.File)) + ".*")
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform