• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 224  文章 - 41  trackbacks - 0
            <2010年9月>
            2930311234
            567891011
            12131415161718
            19202122232425
            262728293012
            3456789

            享受編程

            常用鏈接

            留言簿(11)

            隨筆分類(159)

            隨筆檔案(224)

            文章分類(2)

            文章檔案(4)

            經(jīng)典c++博客

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

                    public static void Dex2Jar(string dexPath)
                    
            {
                        Process p 
            = new Process();
                        p.StartInfo.FileName 
            = "cmd.exe ";
                        p.StartInfo.UseShellExecute 
            = false;
                        p.StartInfo.RedirectStandardInput 
            = true;
                        p.StartInfo.RedirectStandardOutput 
            = true;
                        p.StartInfo.RedirectStandardError 
            = true;
                        p.StartInfo.CreateNoWindow 
            = true;
                        p.Start();
                        
            string cmd = Application.StartupPath;
                        cmd 
            = @"cd /d " + cmd;
                        p.StandardInput.WriteLine(cmd);
                        cmd 
            = "\"" + Application.StartupPath + "\\""dex2jar.bat" + "\" " + "\"" + dexPath + "classes.dex" + "\"";
                        
            if ((Environment.OSVersion.Platform == PlatformID.Win32NT) && (Environment.OSVersion.Version.Major >= 6))
                        
            {
                            cmd 
            = Application.StartupPath + "\\" + "dex2jar.bat" + " " + dexPath + "classes.dex";
                        }

                        
                        p.StandardInput.WriteLine(cmd);
                        p.StandardInput.WriteLine(
            "exit");

                        
            //string strOutput = null;
                        
            //strOutput = p.StandardOutput.ReadToEnd();
                        
            //Console.WriteLine(strOutput);
                        p.WaitForExit();
                        p.Close();
                    }


            ps:不知道什么原因,批處理命令的調(diào)用在xp和win7下的調(diào)用參數(shù)有點不同,多了一個引號參數(shù)。
            posted on 2010-08-29 11:03 漂漂 閱讀(5311) 評論(0)  編輯 收藏 引用 所屬分類: c#開發(fā)
            狠狠久久亚洲欧美专区| 久久人人爽人人爽人人片AV高清| 伊人色综合久久天天人守人婷| 久久久中文字幕日本| 伊人久久大香线蕉AV色婷婷色| 久久精品国产精品亚洲精品| 久久棈精品久久久久久噜噜| 久久青草国产手机看片福利盒子| 久久久久噜噜噜亚洲熟女综合| 久久天天躁夜夜躁狠狠| 91精品国产高清久久久久久国产嫩草| 久久涩综合| 99久久er这里只有精品18| 久久精品国产99久久丝袜| 久久国产亚洲高清观看| 久久有码中文字幕| 狠色狠色狠狠色综合久久| 亚洲AV无码久久精品成人| 无码任你躁久久久久久久| 国产精品久久久久jk制服| 久久国产欧美日韩精品| 久久久免费观成人影院| 国内精品久久久久久久亚洲| 久久综合给合久久狠狠狠97色 | 热综合一本伊人久久精品| 久久精品国产亚洲一区二区| 亚洲精品无码久久千人斩| 久久精品桃花综合| 久久九九免费高清视频 | 精品国产综合区久久久久久| 麻豆一区二区99久久久久| 久久成人小视频| 婷婷久久五月天| 狠狠色丁香婷婷久久综合五月| 久久亚洲高清综合| 久久综合色之久久综合| 少妇被又大又粗又爽毛片久久黑人| 国产精品永久久久久久久久久| 久久国产精品二国产精品| 久久九九久精品国产| 久久天天婷婷五月俺也去|