Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var exec = shell.Exec("%comspec% /c" + comando);
- string str3 = exec.StdOut.ReadAll();
- string str2 = exec.StdErr.ReadAll();
- if (str2 == "")
- {
- str2 = "=> PROCESO REALIZADO CORRECTAMENTE, EL ARCHIVO SE GENERO EN EL DIRECTORIO SELECCIONADO";
- }
- string str = str2 + str3;
- Application.DoEvents();
- return str;
- }
- strArray = new string[] { "https://", this.txtServidor.Text, "/XRMServices/2011/Organization.svc" };
- str = string.Concat(strArray);
- if (this.fbd.ShowDialog() == DialogResult.OK)
- {
- string pathinicio = Application.StartupPath + @"dll";
- Interaction.MsgBox("La clase sera generada en el directorio seleccionado. (No cierre la ventana emergente)",
- MsgBoxStyle.Information, "Zenith");
- this.txtResultado.Text = this.Ejecutar_Dos(pathinicio, "CrmSvcUtil.exe /url:" + str + "/out:" + "MSCRM_Entidades.cs" +
- " /username:" + this.txtUsuario.Text + " /password:" + this.txtContraseña.Text);
- }
- }
Add Comment
Please, Sign In to add comment