Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename local drive to network
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00819378
Message ID:
00819410
Views:
15
>If I remember correctly at one point in Foxpro you where not suppose to use the RENAME command to move a file from different drives.
>
>example
>
>RENAME C:\TEMP\local.dbf TO F:\NETWORK\network.dbf
>
>
>I just tried it and it works but didn't know if there was some reason not to use it.

The only reasons against it I can think of are: that if the table's in a DB, there could be related problems. Also, you lose any cdx without an extra RENAME. And if there's a network hiccup, you could have a problem, though it's not very likely.

I'd probably tend to use COPY TO for most situations instead, as it has more clauses available like for DB, CDX, and *just in case* something goes wrong, you still have the original.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform