Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy file names in table
Message
From
20/04/2010 21:30:52
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
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:
01461246
Views:
36
>>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)) + ".*")
You switched the parameters in forcepath.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform