C # Call the CMD command to execute the batch processing file public static void dex2jar (string dexpath)
{
Function onclick ()
{
Function onclick ()
{
This. style. Display = 'none'; codehighlighter=59_1238_open_text.style.display = 'none'; codehighlighter=59_1238_closed_image.style.display = 'inline'; inline = 'inline ';
}
}
} "Src =" http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif "alt =" "align =" TOP "> {
Function onclick ()
{
Function onclick ()
{
This. style. Display = 'none'; items = 'none'; codehighlighter1_59_1238_open_image.style.display = 'inline'; codehighlighter1_59_1238_open_text.style.display = 'inline ';
}
}
} "Src =" http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif "alt =" "align =" top "> {
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 ))
{
Function onclick ()
{
Function onclick ()
{
This. style. Display = 'none'; codehighlighter1_814_932_open_text.style.display = 'none'; codehighlighter1_814_932_closed_image.style.display = 'inline'; inline = 'inline ';
}
}
} "Src =" http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif "alt =" "align =" TOP "> {
Function onclick ()
{
Function onclick ()
{
This. style. display = 'none'; usage = 'none'; Codehighlighter1_814_932_Open_Image.style.display = 'inline'; Codehighlighter1_814_932_Open_Text.style.display = 'inline ';
}
}
} "Src =" http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif "alt =" "align =" top "> {
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 ();
}