retesere20

Untitled

Feb 18th, 2018
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // get installation path
  2. Match aiddMatch = Regex.Match(pathh, "\"(.*)" + @"\\jre\\bin\\javaw");
  3. string aidd = aiddMatch.ToString();
  4. string pathhh = aidd.Replace("\\jre\\bin\\javaw", "").Replace("\"", "");
  5. string zacints_file = pathhh + "\\zacinst.ini";
  6. // read file to detect version and send it to server
  7. Match Versionname = Regex.Match(readContents, @"application.login.suffix\=\@(.*)");
  8. string Versinnm = Versionname.ToString();
  9. Versinnm = Versinnm.Replace(@"application.login.suffix=@", "");
  10. //read the id from the exe's filename
  11. string sometext = "";
  12.  
  13. // when app name is mysite.com--myfolder--myfile.php___XE3feSUjhg3cazdi
  14. // Match siteUrlMatch = Regex.Match(appNamee, "(.*)___");
  15. // string siteUrl = siteUrlMatch.ToString();
  16. // siteUrl = siteUrl.Replace("--", "/");
  17. // siteUrl = siteUrl.Replace("___", "");
  18. // siteUrl = "htt"+"p:/"+"/"+siteUrl.Replace("___", "");
  19. Match iddMatch = Regex.Match(GloballlAppName, "___(.*)");
  20.  
  21. //if regex success in file name
  22. if (!iddMatch.Success)
  23. {
  24. MessageBox.Show("incorrect file name"); this.Dispose(); this.Close(); return;
  25. }
RAW Paste Data