Not sure if this is relevant, but I have run into problems with renaming manually from Windows 8 on. I note that the rename is deliberately setting Upper and Lower case for parts of the path. I don't do this programmatically, but I frequently Rename files to try to control the Sort Order in the Explorer, and have many times encountered it simply ignoring my changes. I Rename to "New Schedule", and when I hit enter it goes right back to "new SCHEDULE".
Finally figured out that if a name change is only a case change, Windows says that's not a "real" change and refuses to change the directory. Not what I wanted, so I now change it to "FooBuzz 13", and then back to "New Schedule", and am now able to get what I wanted with only twice the work! Is it possible that the "failures" you're seeing are the result of the fact that the stored path never changes? Dan Covill ---------------------------------------- > Date: Wed, 19 Aug 2015 09:29:42 -0400 > Subject: Re: Problem with COPY and RENAME > From: [email protected] > To: [email protected] > > On Tue, Aug 18, 2015 at 6:34 PM, Jeff Johnson <[email protected]> wrote: >> RENAME LOWER(lcimportpath + UPPER(lcimage)) TO lcexportpath + >> UPPER(ALLTRIM(doc_url)) >> does not work. > > Change this to: > lcFrom = LOWER(lcimportpath + UPPER(lcimage)) > lcTo = lcexportpath + UPPER(ALLTRIM(doc_url)) > RENAME (lcFrom) TO (lcTo) > > If it works, let me know why ;) > > I used the adir() method and it is finding the file, but >> there is something wrong with this command. >> It looks okay to me. >> This is one of those FoxPro things that hangs me up. I could probably spend >> days figuring this out and it is usually something I am missing. >> _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.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.

