2haerim Posted November 20, 2007 Posted November 20, 2007 The following code is to generate an A.EXE file and it will be linked inside a web page. So when someone clicks A.EXE link, it will be downloaded to the @TempDir folder and will execute "winvnc.exe" using "Run" function. $execdir = @TempDir & "\" FileInstall("winvnc.exe", $execdir, 1) ;-------------------------------------------------- ; RUN WINVNC SC ;-------------------------------------------------- Run($execdir & "winvnc.exe " & " -connect 210.240.75.244:5500 -noregistry", $execdir) This code perfectly works except when @TempDir has non-english charactes. For example, Korean. FileInstall function does not copy "winvnc.exe" into @TempDir and as a result, Run fails to find it. Can anyone fix this problem? If so, please send me the answer to ehaerim@gmail.com. Thx.
DW1 Posted November 20, 2007 Posted November 20, 2007 what does: MsgBox(0, "test", @TempDir ) return for you? (on the Korean machine) and what should it return AutoIt3 Online Help
2haerim Posted November 20, 2007 Author Posted November 20, 2007 what does: MsgBox(0, "test", @TempDir )oÝ÷ Ú·º¹ß¢¼¨ºíâ¨æ§§!wÜ!jÛ!¢é]ÚÞ¶êçþ«¨µæ®¶sbb33c¶WV6F"ÒFV×F"fײgV÷C²b3#²gV÷C°¤×6t&÷ÂgV÷C·FW7BgV÷C²Âb33c¶WV6F"¤fÆTç7FÆÂgV÷C·vçfæ2æWRgV÷C²Âb33c¶WV6F"Â¥'Vâb33c¶WV6F"fײgV÷C·vçfæ2æWRgV÷C²fײgV÷C²Ö6öææV7B#ã#CãsRã#CC£SSÖæ÷&Vv7G'gV÷C²Âb33c¶WV6F" 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now