Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken text in DISM Out #3

Open
f242 opened this issue May 22, 2019 · 7 comments
Open

Broken text in DISM Out #3

f242 opened this issue May 22, 2019 · 7 comments

Comments

@f242
Copy link

f242 commented May 22, 2019

I think it's wrong encoding. In this case must be cyrillic symbols.

2019-05-22 14_45_34-Window

@Dede333
Copy link

Dede333 commented Mar 5, 2020

Hello,
if you use windows 10 1909, you can set regional settings to use UTF8 (beta) for your console.
Thanks and regard.
Capt1

@PaulNevada
Copy link

PaulNevada commented Sep 30, 2020

Author! It'd be just awesome if you implement this to be automated... Thanks in advance - loved your work here!

@Dede333
Copy link

Dede333 commented Oct 3, 2020

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.

@PaulNevada
Copy link

Thanks! Will try! :)))

@Dede333
Copy link

Dede333 commented Oct 10, 2020

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

@PaulNevada
Copy link

Thanks a lot!

@Thomas-33
Copy link

Thanks a lot Dede333 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants