Rename will always fail if the file already exists. To get around this, do it in two steps:
COPY *.txt *.ftp DEL *.txt The copy command will overwrite the existing file without asking. Dawn Hast Office - (828) 646-2669 Cell - (828) 246-8543 [email protected] wrote on 09/28/2009 01:09:14 PM: > Take that back. Darn it > > > Turn error message 2263 off did not do it. If a dup names exists it > stops the process right then. > > Does anybody know the error message number to turn off? Or > option/setting? To overwrite regardless during ?rename?. > > Sincerely, > Paul Dewey > > > > > > > > From: [email protected] [mailto:[email protected]] On Behalf Of Paul > InterlockInfo > Sent: Monday, September 28, 2009 1:01 PM > To: RBASE-L Mailing List > Subject: [RBASE-L] - RE: Using Wild Card ?????? > > Ok Bob- > > I found it, now what to do about it is a different story. One file > is already named 6436453645.ftp it sees that regardless of file > order and stops the process. Depending on some order of things > (files) not sure. I saw the error come up in DOS and figured to > give it a try and that was the issue. Why half way sometimes and > other times it stopped right away? > > So my fault. > > So ?Set error message 2263 Off? works fine. > Then ?Rename ?????? > > Sincerely, > Paul Dewey > > > > Thank you all! > > > > From: [email protected] [mailto:[email protected]] On Behalf Of Paul > InterlockInfo > Sent: Monday, September 28, 2009 12:47 PM > To: RBASE-L Mailing List > Subject: [RBASE-L] - RE: Using Wild Card ?????? > > Dawn- > Ah one other thing. I thought perhaps the underscore was an issue > or location. It does not seem to change the results. > > I also cannot say the ?_? is always in one place either. > Sometimes there is a blank space instead, It works also and > sometimes not just like the ?_?. > > As crazy as it sounds is there a limit to changes when using > ?Rename? when using so many ????s ? I will send this in, but I > thought maybe somebody has run in to this before. > > > > Bob- > > Great thought and could not say I did it or not. So I did *.txt to > *.ftp and it worked fine. (darn it! ) > > > Sincerely, > Paul D. > > > > > > > From: [email protected] [mailto:[email protected]] On Behalf Of Paul > InterlockInfo > Sent: Monday, September 28, 2009 12:27 PM > To: RBASE-L Mailing List > Subject: [RBASE-L] - RE: Using Wild Card ?????? > > My mistake on that. They are all the correct ext. In fact I would > rather not say the ext, but they are all the same to all the same. > That was a typo error. > > All in one folder 3 to 40 of them. > > Sincerely, > Paul D. > > > > > > From: [email protected] [mailto:[email protected]] On Behalf Of > [email protected] > Sent: Monday, September 28, 2009 12:16 PM > To: RBASE-L Mailing List > Subject: [RBASE-L] - RE: Using Wild Card ?????? > > > The file didn't change because it's not *.txt, it's *.log. > > Why aren't you using * instead of the multiple ?? > > Dawn Hast > > > > [email protected] wrote on 09/28/2009 12:07:54 PM: > > > I need a bit of help here and it is driving me crazy. I have a routine that > > renames a file from 4632321214_0908221430.txt and I want it to change to > > 4632321214_0908221430.ftp > > > > 1. These file name could be 10 to 40 char long > > 2. I have NO control over the names (please do not ask me to change them) > > > > > > I thought I had it covered and then 5 out of 60 would not accept the change. > > I used the following: > > RENAME ????????????????????????????????????????.txt > > ????????????????????????????????????????.ftp (yes that is forty ??'s on > > both sides) > > > > > > > > Example of a name that would not change: 104745_0909221430.log > > > > > > I have a lot longer and shorter that did change names, all attributes are > > "A" all local or network same results. Does not change from OS. No > > difference between 7.6 or later, compiled or not. I suppose you could say, > > "No green eggs or ham" trying to find humor! I have had this issue now for > > three weeks and review a lot of old email trying to find my error. I do not > > want to store a command (.cmd shell batch) and zip out or launch. I would > > like this to stay internal, but I am also running out of options. > > > > Any thoughts? > > > > > > > > > > Sincerely, > > Paul Dewey > > > > > DISCLAIMER: This electronic message together with any attachments > is confidential. If you are not the intended recipient, do not > copy, disclose or use the contents in any way. Please also advise > us by return e-mail that you have received the message and then > please destroy. Evergreen Packaging is not responsible for any > changes made to this message and / or any attachments after sending > by Evergreen Packaging. We use virus scanning software but exclude > all liability for viruses or anything similar in this email or any attachment. DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. Evergreen Packaging is not responsible for any changes made to this message and / or any attachments after sending by Evergreen Packaging. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment.

