This code is working in fpdos. I tried the same in vfpsp2. The second full path is for safety. I think that vfp does a copy and a delete. Not adding the fullpath to the destination copies the file to the current directory. Problably that neither fullpath is necessary when working in the current directory. If this code is not working then the 'rename' is not the cause but the file to rename.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Allen Sent: woensdag 27 juli 2011 13:28 To: [email protected] Subject: RE: rename file I tried & as well as brackets, full path both, full path first and filename second. BTW this is VFP9SP1 Al -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Richard Quilhot Sent: 27 July 2011 13:22 To: [email protected] Subject: Re: rename file Try: rename &cFirstname TO &cSecondname Rick Q [email protected] [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

