I write script (js or vbs, not significant) with Windows Script Host that creating .bat file.
I want to convert ANSI string to OEM with ADODB.Stream
I may get current OEM code page with Split(CreateObject("WScript.Shell").Exec("cmd /c chcp").StdOut.ReadAll, ":")(1)
and then convent it to charset with http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx.
How I may get the current ANSI(script) charset?