如何我的批處理可以處理路徑例如空間:附加空間批處理文件
C:\ Documents和Settings \ķ\桌面\新建文件夾
@echo off
pushd "%~dp0"
IF EXIST "%1" GOTO DECODE_INDIVIDUAL
:DECODE_MULTIPLE
xcopy /s /c /d /e /h /i /r /y "%cd%\encoded" "%cd%\decoded\"
dir "%cd%\decoded\*.php" /A:-D /B /O:N /S >> "%cd%\filelist.txt"
@echo on
for /F %%e in ("%cd%\filelist.txt") do (copy "%%e" "bin\file.php" && "php.exe" "bin\decoder.php" "bin\file.php" && move "bin\file.php" "%%e" && del "bin\file.php")
del /Q "%cd%\filelist.txt"
GOTO DECODE_END
:DECODE_INDIVIDUAL
@echo on
"php.exe" "%cd%\bin\decoder.php" "%1"
:DECODE_END
路徑是通過'%1'還是'%CD%'?注意:將你的'「%1」'改爲'「%〜1」'。 – 2013-03-19 20:38:23