Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get installation path
- Match aiddMatch = Regex.Match(pathh, "\"(.*)" + @"\\jre\\bin\\javaw");
- string aidd = aiddMatch.ToString();
- string pathhh = aidd.Replace("\\jre\\bin\\javaw", "").Replace("\"", "");
- string zacints_file = pathhh + "\\zacinst.ini";
- // read file to detect version and send it to server
- Match Versionname = Regex.Match(readContents, @"application.login.suffix\=\@(.*)");
- string Versinnm = Versionname.ToString();
- Versinnm = Versinnm.Replace(@"application.login.suffix=@", "");
- //read the id from the exe's filename
- string sometext = "";
- // when app name is mysite.com--myfolder--myfile.php___XE3feSUjhg3cazdi
- // Match siteUrlMatch = Regex.Match(appNamee, "(.*)___");
- // string siteUrl = siteUrlMatch.ToString();
- // siteUrl = siteUrl.Replace("--", "/");
- // siteUrl = siteUrl.Replace("___", "");
- // siteUrl = "htt"+"p:/"+"/"+siteUrl.Replace("___", "");
- Match iddMatch = Regex.Match(GloballlAppName, "___(.*)");
- //if regex success in file name
- if (!iddMatch.Success)
- {
- MessageBox.Show("incorrect file name"); this.Dispose(); this.Close(); return;
- }
Advertisement
Add Comment
Please, Sign In to add comment