완벽하게 작동하는 .bat 파일에이 코드를 작성했지만 갑자기 ... 작동이 멈췄습니다. 몇 가지 폴더 이름을 변경하는 것 외에 어떤 일이 일어 났는지 전혀 알지 못합니다. 여기 이 배치 코드가 작동하지 않는 이유는 무엇입니까?
내 코드입니다 :@echo off
start /w Files\MySQL\mysql-connector-net-6.6.5.msi
echo MySQL Connector/NET 6.6.5 has been installed.
FOR /F "usebackq delims=" %%i in (`cscript desktop.vbs`) DO SET DESKTOPDIR=%%i
copy Files\DayZAdminApp.exe %DESKTOPDIR%\DayZ Admin Panel
echo.
echo DayZ Admin Panel has been placed onto your desktop.
echo D | xcopy Files\DaRT %desktopdir%\DayZ Admin Panel\Files\DaRT /E /Q
ping 127.0.0.1 -n 2 -w 1000 >nul: 2>nul:
echo.
echo DayZ Admin rCon Tool (DaRT) has been copied.
echo.
copy Files\loadout.exe %DESKTOPDIR%\DayZ Admin Panel\Files
echo Loadout editor has been copied.
echo.
echo.
echo Make sure you keep the folder intact, any missing files will limit the panel's capabilities.
echo.
pause
그리고 여기 desktop.vbs 파일입니다 :
:set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
wscript.echo(strDesktop)`
과 도움이 경우
가 여기에 출력의 스크린 샷입니다참고 : 내 코드는 t를 제외하고 정확히 동일 할 때 잘 동작했습니다. 그냥 그 foldernames을 일 처리 나 있다면 그는 Files\
및 DayZ Admin Panel\
을 foldernames,이 공간을 포함하고 있기 때문에
오른쪽 ... 나는 바보를하지 않는거야? 내가 그걸 잊어 버렸다고 믿을 수가 없어. – Yorrick