Jump to content

output from dos run in ascii


shai
 Share

Recommended Posts

this is my code:

$foo = Run("rasdial", @SystemDir, @SW_HIDE, 2)
$output = ""
While 1
$output &= StdoutRead($foo)
If @error Then ExitLoop
WEnd
ConsoleWrite($output & @CRLF)

i console i get this output:

Connected to
‰‰ ‹™˜
Command completed successfully.

the connection name is in hebrew.

how i can convert the "‰‰ ‹™˜" string to hebrew?

thanks

Link to comment
Share on other sites

  • Moderators

Hi, shai. There was a recent post in the Snippets section of the forum that may help you out:

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Func _OEM2ANSI($what)
$ret = DllCall('user32.dll', 'Int', 'OemToChar', 'str', $what, 'str', '')
Return $ret[2]
EndFunc ;==>_OEM2ANSI

Func _ANSI2OEM($what)
$ret = DllCall('user32.dll', 'Int', 'CharToOem', 'str', $what, 'str', '')
Return $ret[2]
EndFunc ;==>_OEM2ANSI

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

No problem!

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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...