Jump to content

Non-English path handling problem


Guest 2haerim
 Share

Recommended Posts

Guest 2haerim

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...