Home > Blockchain >  Am I the only one who have this problem: While running something like .bat, the "X:\..\..path
Am I the only one who have this problem: While running something like .bat, the "X:\..\..path

Time:08-24

While running something like .bat, the "X:\..\..path" often becomes ""X:\..\path and producing errors. For example, I was installing apktool, then it just appeared this: '""C:\Program' is not recognized as an internal or external command, operable program or batch file. I then copy the command and put one of the double quote to the end, which is like this: "C:\Program" And everything just went smoothly, installation was successful. Then I tried to decode an apk, and the exactly same problem occurred: '""C:\Program' is not recognized as an internal or external command, operable program or batch file. This time I have no idea how to fix it, it's not like the .bat now, I cannot get the @echo on and copy the last command and edit it. So I am here to ask: If I am the only one who met this? Any way to fix this? Thank you.

My command:

apktool d test.apk

Image of running a decode command : 1

apktool.bat content:

@echo off
setlocal
set BASENAME=apktool_
chcp 65001 2>nul >nul

set java_exe=java.exe

if defined JAVA_HOME (
set java_exe="%JAVA_HOME%\bin\java.exe"
)

rem Find the highest version .jar available in the same directory as the script
setlocal EnableDelayedExpansion
pushd "%~dp0"
if exist apktool.jar (
    set BASENAME=apktool
    goto skipversioned
)
set max=0
for /f "tokens=1* delims=-_.0" %%A in ('dir /b /a-d            
  • Related