Opened 6 years ago

Closed 6 years ago

#3569 closed Bug (No Bug)

CmdLine parameter charset

Reported by:… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


I have script for get parameter as text with special charsets but i do not show as original line. How i can show as original? On this forum i find only How file open as UTF-8, etc. But this problem no.
cmd script:

@echo off
Test.exe "D:\Folder1\Folder2\ěščřžýáíéúů\Folder3" "green.txt"

Test.au3 script:

#include <MsgBoxConstants.au3>
#include <file.au3>
#include <Array.au3>

Global $parameter
If Not $CmdLine[0] Then
    MsgBox(0, 'Info', 'Sorry but you not defined param for running.' & @CRLF & @CRLF & @CRLF & 'Examples:' & @CRLF & @CRLF & @ScriptName & ' "C:\Path\PathNext" "filename.ext"')

Global Enum $giParam_1,$giParam_2,$giParam_UBound
Global $aParams[$giParam_UBound]
For $i = 1 to UBound($CmdLine)-1
    If $i > $giParam_UBound Then
        MsgBox(0, 'Info', "More Params included than expected!" & @CRLF & @CRLF & " Accept Params is: " & $giParam_UBound)

MsgBox(1, "Split", $aParams[$giParam_1] & "\" & $aParams[$giParam_2])
;MsgBox(1, "Split 2", $CmdLineRaw) ;;; have bug too


Bad output:

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by Jos

Can't replicate it and is working fine for me:

  • put your code in a test.au3 file encoded as UTF8 without bom
  • Compiled it
  • Started CMD prompt and did command: Test.exe "D:\Folder1\Folder2\ěščřžýáíéúů\Folder3" "green.txt"

The MSGBOX shows:



OK Annuleren

It only goes wrong when you shell the compiled script from a batch file, so there is some sort of conflict there, but as Shown, AutoIt3 is working fine.

Last edited 6 years ago by Jos (previous) (diff)

comment:2 Changed 6 years ago by Jos

I am closing this as Nobug and let's continue the discussion in the forum:

comment:3 Changed 6 years ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.