The problem is in coding:

Windows coding: not works
Copy    "1094_CommuniquÚ de presse Úmission Tier 1 mai 2004 Agence Franšaise
de DÚveloppement en franšais(v1).DOC"       ..\renamed\6000372.DOC
MS-DOS coding: it works
Copy    "1094_Communiqué de presse émission Tier 1 mai 2004 Agence Française
de Développement en français(v1).DOC"       ..\renamed\6000372.DOC

You can re-code your batch file in e.g. MS Word.
On Fri, Mar 28, 2008 at 4:55 PM, <[EMAIL PROTECTED]> wrote:

> The last part of a job I am doing is to rename over 8000 files based on
> their key value in a data migration exercise...
>
> All seemed easy as I had both peices of info and therefore created a batch
> file to do the renaming for me......or so I thought.
>
> It seems that accented characters cause the batch file to basically fail.
>
> here is a small part of my batch file:
>
> Copy    "1093_USASECasset-backMay04.pdf"         ..\renamed\6000371.pdf
> Copy    "1094_Communiqué de presse émission Tier 1 mai 2004 Agence
> Française de Développement en français(v1).DOC"       ..\renamed\6000372.DOC
> Copy    "1095_Communiqué de presse livre FEP -Corporate Governance avril
> 2004(v5).DOC"   ..\renamed\6000373.DOC
> Copy    "10lux21nov05.pdf"       ..\renamed\1000580.pdf
> Copy    "1100_Communiqué de presse nomination nouveaux counsel mai
> 2004(v1).DOC"         ..\renamed\6000375.DOC
> Copy    "1101_Communiqué de presse Arrivée de Corinne Perdrix en français
> - mai 2004(v3).DOC"    ..\renamed\6000376.DOC
> Copy    "1102_Communiqué de presse pour le Real Estate Standard Life
> Gecina 1er juin 2004 portefeuille immobilier(v5).DOC"
> ..\renamed\6000377.DOC
> Copy    "1103_communiqué de presse cession AvantSeine fait avec Gide -
> juin 2004(v2).DOC"        ..\renamed\6000378.DOC
>
>
> The first command will complete fine, the rest all say "File not found".
> Now here is the real odd bit.......If I run the following from cmd prompt it
> completes successfully:
>
> Copy    "1095_Communiqué de presse livre FEP -Corporate Governance avril
> 2004(v5).DOC"   ..\renamed\6000373.DOC
>
> Why will it work when run from cmd prompt but not from a batch file that
> has been called from the cmd prompt?
>
> Regards,
>
> Jason Tozer
> Database Analyst
> London
> Ext 1131 - 3SC.5
> This message and any attachment are confidential and may be privileged or
> otherwise protected from disclosure.
> If you are not the intended recipient, please telephone or email the
> sender and delete this message and any
> attachment from your system.  If you are not the intended recipient you
> must not copy this message or attachment
> or disclose the contents to any other person.
> Incoming and outgoing email communications may be monitored by Clifford
> Chance, as permitted by applicable
> law and regulations.
>
> For further information about Clifford Chance please see our website at
> http://www.cliffordchance.com or refer
> to any Clifford Chance office.
>
> Clifford Chance LLP is a limited liability partnership registered in
> England & Wales under number OC323571.
> The firm's registered office and principal place of business is at 10
> Upper Bank Street, London, E14 5JJ.
> For further details, including a list of members and their professional
> qualifications, see our website
> at www.cliffordchance.com. The firm uses the word 'partner' to refer to a
> member of Clifford Chance LLP or
> an employee or consultant with equivalent standing and qualifications. The
> firm is regulated by the Solicitors Regulation Authority.
> The Authority's rules can be accessed by clicking on the following link:
> http://www.sra.org.uk/code-of-conduct.page
>
>
>

Reply via email to