Dim process As New System.Diagnostics.Process process.StartInfo.FileName = "cmd.exe" process.StartInfo.UseShellExecute = False process.StartInfo.CreateNoWindow = True process.StartInfo.RedirectStandardInput = True process.StartInfo.RedirectStandardOutput = True process.Start() Dim actualFilePath As String =Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase).Substring(6) & "\sample\a.pdf" Dim viewPath As String = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase).Substring(6) & "\sample" Dim dynamicFLXname As String = "a" process.StandardInput.WriteLine("cd " & My.Settings.FLEX) process.StandardInput.WriteLine("pdf2json.exe """ & actualFilePath & """ -enc UTF-8 -hidden -compress """ & viewPath & "\" & dynamicFLXname & ".js""") process.StandardInput.WriteLine("exit") Dim input As String = process.StandardOutput.ReadToEnd process.Close()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)