Jump to content
Sign in to follow this  
shai

output from dos run in ascii

Recommended Posts

shai

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

Share this post


Link to post
Share on other sites
JLogan3o13

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


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
shai

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

no. i lock for code that convert from ascii to string.

Share this post


Link to post
Share on other sites
Xenobiologist

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

Share this post


Link to post
Share on other sites
Xenobiologist

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.