Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9245233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:13:14+00:00 2026-06-18T09:13:14+00:00

I want to process some files through a batch file via drag & drop

  • 0

I want to process some files through a batch file via drag & drop under Windows.

Some of the files have unicode characters in their names, e.g. Example_ěø.txt

Unfortunately, many of the non-ASCII characters get mangled along the way. For example, with a simple batch file like

echo %*

when I drag & drop a file with the example name given above I get:

C:\>echo "C:\Example_eo.txt"
"C:\Example_eo.txt"

and so the ěø has been converted to eo, and naturally the file cannot be found.

Is there any way in a Windows batch file to access the actual unicode name/path of the files dragged & dropped onto the batch file?


ANSWER: Use chcp 65001, but to prevent the command terminating the bat file, it’s necessary to route any output from the command to nul. I also found it necessary to put the following commands on the same line using &&. So my sample bat file now reads

chcp 65001 > nul && echo %* && pause

Which shows the unicode/utf-8 versions of the filenames/paths of files dropped on it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:13:15+00:00Added an answer on June 18, 2026 at 9:13 am

    You can do it by using

    chcp 65001
    

    and changing the font in cmd to Lucida Console.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data generated in MATLAB that I want to process using Perl.
I want to iterate through a table/view and then kick off some process (e.g.
I need execute some code before Windows shutdown process each time. So, I want
I am manually copying some folders and files through C#, and I want to
I need some help in thinking through the process to do batch update on
I have a working drupal batch process. In it I want to copy image
I want to read and process some large files line by line in python
When I want to upload some files that I have tested with MAMP on
I have a directory to which a process uploads some .pdf files. This process
I want to process a file line by line in c, all lines in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.