コード例 #1
0
        public static string TouchPACFile()
        {
            if (File.Exists(PAC_FILE))
            {
                return(PAC_FILE);
            }

            FileManager.DecompressFile(PAC_FILE, Resources.proxy_pac_txt);
            return(PAC_FILE);
        }
コード例 #2
0
 static HttpProxyRunner()
 {
     runningPath   = Path.Combine(System.Windows.Forms.Application.StartupPath, _subPath);
     _exeNameNoExt = System.IO.Path.GetFileNameWithoutExtension(Util.Utils.GetExecutablePath());
     _exeName      = @"/" + _exeNameNoExt + @".exe";
     if (!Directory.Exists(runningPath))
     {
         Directory.CreateDirectory(runningPath);
     }
     Kill();
     try
     {
         FileManager.DecompressFile(runningPath + _exeName, Resources.privoxy_exe);
         FileManager.DecompressFile(runningPath + "/mgwz.dll", Resources.mgwz_dll);
     }
     catch (IOException e)
     {
         Logging.LogUsefulException(e);
     }
 }