Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RENAME statement bombs when duplicate file encountered
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01122737
Message ID:
01122775
Views:
15
You could check if the file name already exists on the new drive by using the FILE() procedure and delete it before renaming your cource file.

>I am moving files using RENAME statement as follows:
>
>
		k = 'V:\AS400\f1\*.*'
>		l = 'I:\STAFF\DIVISION\Fiscal\Ar\Common\Reports\*.*'
>		rename (k) to (l)
>
>
>The problem is that it bombs if their is a duplicate file being moved. Is their another way to move files from one directory to another after renaming the duplicate file on source drive?
>
>thanks
>Nick
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Previous
Reply
Map
View

Click here to load this message in the networking platform