Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Non Latin letters in path

Featured Replies

I have a strange problem, I want to start a program from a cmd file, it should be easy, but when the path contains non latin letters then things go wrong.

My program is in a folder "c:\æøå" and the program is called "start.exe"

from the command promt I can just type in "c:\æøå\start.exe" and things works ok.

But if I make a cmd file with the same line "c:\æøå\start.exe" then the line is converted when the script is executed into "c:\µ°Õ\start.exe" and that path(folder) do not exist, so no start of my program.

I had try to save my cmd file in unicode/UTF8 but that does not work at all.

What to do ?


Can you start the script from the command line using your folder as a parameter?

MyBatch.cmd C:\æøå

@ECHO OFF & SETLOCAL ENABLEEXTENSIONS
FOR /F "TOKENS=*" %%# IN ("%*") DO (SET _=%%~#)
IF EXIST "%_%\START.EXE" "%_%\START.EXE"

If that is not an option, another is to use 'Terminal' font in your batch script editor.

It may look like this in another font/editor

@ECHO OFF & SETLOCAL ENABLEEXTENSIONS
IF EXIST "C:\‘›†\START.EXE" "C:\‘›†\START.EXE"

but it should be correct!

When i have this kind of problem with only 2 or 3 occurrences i use the good old edit from a dos prompt and type wanted text/characters.

Edited by allen2

you can also use: dir /x

on parent folder to determine the actual 8.3 folder names, and use such name in your batch.

My program is in a folder "c:\æøå" and the program is called "start.exe"

from the command promt I can just type in "c:\æøå\start.exe" and things works ok.

It's about ANSI and OEM codepages.

CMD file uses ANSI codepage and command line uses OEM codepage.

Adjust codepage.

Try a example

set CodePage=HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage
FOR /F "tokens=1-2*" %%a IN ('%SystemRoot%\system32\reg.exe query "%CodePage%" /v "OEMCP"') DO (set OEMCP=%%c)
FOR /F "tokens=1-2*" %%a IN ('%SystemRoot%\system32\reg.exe query "%CodePage%" /v "ACP"') DO (set ACP=%%c)

echo current CodePage
%SystemRoot%\system32\chcp.com
dir c:\æøå

echo set CodePage to %ACP%
%SystemRoot%\system32\chcp.com %ACP%
dir c:\æøå

echo set CodePage to %OEMCP%
%SystemRoot%\system32\chcp.com %OEMCP%

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.