反编译apk文件时命令提示符自动关闭 [英] command prompt automatically close when decompile the apk file

查看:107
本文介绍了反编译apk文件时命令提示符自动关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,我想反编译apk文件。当我通过apkdecompiler工具反编译apk时,在命令提示符下自动关闭。为什么?



f:> cd apkdecompile然后

f:.apkdecompile> decompile.bat filename.apk

当我输入此命令时,一些文件正在进行中,之后它会自动关闭命令提示符窗口

Hi friends, I want to decompile the apk files.when i decompile the apk by apkdecompiler tool, in command promptis automatically closed.why?

f:>cd apkdecompile then
f:.apkdecompile>decompile.bat filename.apk
when i entered this command some files are progressing and after that it is automatically close command prompt window

推荐答案

如果从windows命令行(shell)运行.bat文件,那么它将由shell直接执行,而不是为它启动另一个shell。因此,如果bat文件执行例如exit命令,那么它将由shell直接执行,这当然会关闭你的窗口。有两种解决方法:



1.在bat文件中使用exit / B [exitcode]而不是exit。这个带/ B的特殊退出命令不会关闭shell,只是停止.bat执行。



2.运行子shell中的.bat文件它是这样的:cmd / c decompile.bat filename.apk
If you run a .bat file from the windows commandline (shell) then it is executed directly by the shell and not by starting another shell for it. As a result if the bat file executes for example and "exit" command then it is executed directly by your shell and this will of course close your window. There are two workarounds:

1. In the bat file use "exit /B [exitcode]" instead of exit. This special exit command with the /B won't close the shell, just stops the .bat execution.

2. Run your .bat file in a subshell by running it like this: "cmd /c decompile.bat filename.apk"


按照以下链接中给出的步骤反编译apk文件



http://hiox.org/36891-decoding-apk-file.php [ ^ ]
Follow the steps given in the following link to decompile a apk file

http://hiox.org/36891-decoding-apk-file.php[^]


这篇关于反编译apk文件时命令提示符自动关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆