Guest User

Untitled

a guest
Feb 13th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. var exec = shell.Exec("%comspec% /c" + comando);
  2. string str3 = exec.StdOut.ReadAll();
  3.  
  4. string str2 = exec.StdErr.ReadAll();
  5.  
  6. if (str2 == "")
  7. {
  8. str2 = "=> PROCESO REALIZADO CORRECTAMENTE, EL ARCHIVO SE GENERO EN EL DIRECTORIO SELECCIONADO";
  9. }
  10.  
  11. string str = str2 + str3;
  12. Application.DoEvents();
  13. return str;
  14. }
  15.  
  16. strArray = new string[] { "https://", this.txtServidor.Text, "/XRMServices/2011/Organization.svc" };
  17. str = string.Concat(strArray);
  18.  
  19. if (this.fbd.ShowDialog() == DialogResult.OK)
  20. {
  21. string pathinicio = Application.StartupPath + @"dll";
  22. Interaction.MsgBox("La clase sera generada en el directorio seleccionado. (No cierre la ventana emergente)",
  23. MsgBoxStyle.Information, "Zenith");
  24. this.txtResultado.Text = this.Ejecutar_Dos(pathinicio, "CrmSvcUtil.exe /url:" + str + "/out:" + "MSCRM_Entidades.cs" +
  25. " /username:" + this.txtUsuario.Text + " /password:" + this.txtContraseña.Text);
  26. }
  27. }
Add Comment
Please, Sign In to add comment