Note that there are some explanatory texts on larger screens.

plurals
  1. POIf Filename place to dir dont work
    primarykey
    data
    text
    <p>I have problem with small thing...i coding auto updater and when i downloading .exe file i want to place it to main dir..and others .extension to sub dir.</p> <p>File.exe = Here is i download place to main dir Else = place to sub dir...but it isnt working, place all to main dir</p> <pre><code>if(ex[1] == "File.exe") { if (File.Exists(path)) { if(File.Exists(String.Format("{0}WoW.exe", wow.GetValue("InstallPath").ToString()))) { File.Copy(String.Format("{0}WoW.exe", wow.GetValue("InstallPath").ToString()), String.Format("{0}WoW_zaloha_Awrodar_old_file.exe", wow.GetValue("InstallPath").ToString()), false); File.Delete(String.Format("{0}WoW.exe", wow.GetValue("InstallPath").ToString())); } else if(File.Exists(String.Format("{0}Wow.exe", wow.GetValue("InstallPath").ToString()))) { File.Copy(String.Format("{0}Wow.exe", wow.GetValue("InstallPath").ToString()), String.Format("{0}Wow_zaloha_Awrodar_old_file.exe", wow.GetValue("InstallPath").ToString()), false); File.Delete(String.Format("{0}Wow.exe", wow.GetValue("InstallPath").ToString())); } FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); MD5 md5 = new MD5CryptoServiceProvider(); byte[] retVal = md5.ComputeHash(fs); fs.Close(); StringBuilder sb = new StringBuilder(); foreach(byte b in retVal) sb.Append(string.Format("{0:X2}", b)); if(ex[2] == sb.ToString()) proceed = false; } } else { if(File.Exists(MPQpath)) { FileStream fs = new FileStream(MPQpath, FileMode.Open, FileAccess.Read, FileShare.Read); MD5 md5 = new MD5CryptoServiceProvider(); byte[] retVal = md5.ComputeHash(fs); fs.Close(); StringBuilder sb = new StringBuilder(); foreach(byte b in retVal) sb.Append(string.Format("{0:X2}", b)); if(ex[2] == sb.ToString()) proceed = false; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload