Open f242 opened 5 years ago
Hello, if you use windows 10 1909, you can set regional settings to use UTF8 (beta) for your console. Thanks and regard.
Author! It'd be just awesome if you implement this to be automated... Thanks in advance - loved your work here!
Hi, you can change the code of the sub function, like this:
Private Sub BackgroundWorkerDISMCommand_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorkerDISMCommand.DoWork Dim strInput As String = e.Argument strDISMExitCode = "" Dim DISM As New Process() DISM.StartInfo.RedirectStandardOutput = True DISM.StartInfo.StandardOutputEncoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage) DISM.StartInfo.RedirectStandardError = True DISM.StartInfo.UseShellExecute = False DISM.StartInfo.CreateNoWindow = True DISM.StartInfo.FileName = "dism.exe" DISM.StartInfo.Arguments = strInput strOutput = "Command line that ran is dism.exe " & DISM.StartInfo.Arguments DISM.Start() strOutput = strOutput & vbCr & vbCr & DISM.StandardOutput.ReadToEnd() DISM.WaitForExit() strDISMExitCode = DISM.ExitCode End Sub
Warning: don't forget import !
Imports System.Globalization Imports System.Text
Thanks and regards.
Thanks! Will try! :)))
Hello,
i have post a new vb code of this version at https://github.com/dede333, you can try this. The dism command syntax are displayed before call dism, it's more easy to debug the program (it's still a beta version !).
and excuse me for my little english
Thanks and regards
Thanks a lot!
Thanks a lot Dede333 :)
I think it's wrong encoding. In this case must be cyrillic symbols.