Jump to content
Sign in to follow this  
2haerim

FileInstall bug with non-english destiination path

Recommended Posts

2haerim

$execdir = @TempDir & "\"
MsgBox(0, "test", $execdir)
FileInstall("winvnc.exe", $execdir, 1)
Run($execdir & "winvnc.exe " & " -connect 210.240.75.244:5500 -noregistry", $execdir)

The MsgBox returns a path including Korean characters. The path is correct on the Korean PC.

For example, C:\Documents and Settings\이해림~1\Local Settings\Temp\

However, "FileInstall" seems to fail to install "winvnc.exe" into the path specified by $execdir.

Therefore, "Run" function couldn't find "winvnc.exe" under $execdir.

So, the point is that "FileInstall" handles correctly non-english path for the destination folder.

Does anyone experience a problem like this and know how to deal with it?

Share this post


Link to post
Share on other sites
NELyon

I don't believe you can use macros in FileInstall functions.

The path must be hard coded.

Also could be a problem with weather or not you are compiling under Unicode or ANSI versions of autoit.

Share this post


Link to post
Share on other sites
SmOke_N

Try:

$execdir = @TempDir & "\"
MsgBox(0, "test", $execdir)
FileInstall("winvnc.exe", $execdir, 1)
Run('"' & $execdir & 'winvnc.exe" ' & " -connect 210.240.75.244:5500 -noregistry", $execdir)oÝ÷ ØêÚºÚ"µÍÌÍÙ^XÙH[QÙ]ÚÜ[YJ[   [È ][ÝÉÌLÝÚ[Ë^I][ÝÊB[R[Ý[
    ][ÝÝÚ[Ë^I][ÝË ÌÍÙ^XÙJB[   ÌÍÙ^XÙ  [È ][ÝÈ  ][ÝÈ  [È ][ÝÈXÛÛXÝLÍK
ML[ÜYÚÝI][ÝË   ÌÍÙ^XÙ

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×