Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. if(Process.Start(FileStart.ToString()) == true)
  2. {
  3. //Bloco
  4. };
  5.  
  6. var WebReq = (HttpWebRequest)WebRequest.Create(Url);
  7. HttpWebResponse response = (HttpWebResponse)WebReq.GetResponse();
  8.  
  9. private static void StartService()
  10. {
  11. try
  12. {
  13. var FileStart = new FileInfo(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"WSOPaf.jar"));
  14. Process.Start(FileStart.ToString());
  15. }
  16. catch(Exception e)
  17. {
  18. MessageBox.Show("WSOPaf.jar não foi encontrado", "OK", MessageBoxButtons.OK);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement