• <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
            <2008年11月>
            2627282930311
            2345678
            9101112131415
            16171819202122
            23242526272829
            30123456

            享受編程

            常用鏈接

            留言簿(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 漂漂 閱讀(5299) 評論(0)  編輯 收藏 引用 所屬分類: c#開發(fā)
            精品无码久久久久久久久久| 久久国产亚洲精品无码| 久久精品中文字幕有码| 色婷婷狠狠久久综合五月| 99久久这里只精品国产免费| 久久AV高清无码| 久久综合伊人77777麻豆| 97精品伊人久久大香线蕉app| 国产精品伦理久久久久久| 欧美亚洲国产精品久久高清| 国内精品久久久久影院免费| 国产福利电影一区二区三区,免费久久久久久久精 | 久久精品国产亚洲AV无码偷窥| 69久久精品无码一区二区| 久久久久久久综合日本| 色婷婷综合久久久中文字幕| 66精品综合久久久久久久| 一本色道久久HEZYO无码| 办公室久久精品| 精品国产乱码久久久久久1区2区| 色综合久久综精品| 久久精品中文字幕无码绿巨人 | 日韩亚洲欧美久久久www综合网| 热RE99久久精品国产66热| 99久久这里只有精品| 麻豆av久久av盛宴av| 久久久不卡国产精品一区二区| 国内精品久久久久久野外| 亚洲AV成人无码久久精品老人| 久久久久综合中文字幕| 亚洲国产成人久久精品影视| 久久精品国产亚洲AV香蕉| 午夜人妻久久久久久久久| 久久精品国产男包| 综合网日日天干夜夜久久| 久久久黄色大片| 久久久久久亚洲精品影院| 色综合久久中文字幕综合网| 久久人妻少妇嫩草AV无码蜜桃| 99久久久久| 久久久久久国产精品美女|