International characters in command scripts

Discussion in 'Windows XP / Older OS' started by MyDigitalName, Oct 15, 2009.

  1. MyDigitalName

    MyDigitalName MDL Member

    Sep 12, 2009
    117
    13
    10
    #1 MyDigitalName, Oct 15, 2009
    Last edited by a moderator: Apr 20, 2017
    Hi there,
    I got a problem. I cannot use any file names in in command scripts that have international characters in their names.

    This works in the command prompt:
    Code:
    del "Programkompatibilitási varázsló.lnk"
    The file will be deleted just fine.

    Then, I open up notepad and copy-paste the same command line (the characters how up in Notepad properly), save it and run it, I get this:
    Code:
    Could Not Find D:\Programkompatibilitßsi varßzsl≤.lnk
    Next, I save the same cmd script as unicode (again, the characters how up in Notepad properly), and run it. Then get this:
    Code:
    '■d' is not recognized as an internal or external command,
    operable program or batch file.
    Is there any way to use file names with international characters in their name?

    Thank you.

    PS. I tried referring to the files with their short names, but it did not work.
    It's not just the del command - it's any command, for example this does not work neither:
    Code:
    NET.EXE USER Segítségnyújtó /delete
     
  2. crypto

    crypto MDL Member

    Nov 3, 2008
    114
    364
    10
    #4 crypto, Oct 16, 2009
    Last edited by a moderator: Apr 20, 2017