我正在开发一个程序,当我进行新的开发并添加新的补丁时,它会自动更新我的游戏。当我运行补丁更新时,它无法将 wget 识别为内部或外部命令。
游戏:
:Checkforupdates
cls
cd C:\AirlineSim\
echo Checking for Updates
wget "http://interversesoftware.weebly.com/uploads/4/8/5/8/48585729/aspatcher.bat"
if /i not exist "ASpatcher.bat" (echo Could not retrieve update file.) && pause
if exist "ASpatcher.bat" call "ASpatcher.bat"
if exist "ASpatcher.bat" del "ASpatcher.bat"
goto menu
更新程序中的更多代码
更新者:
cd C:\Airlinesim
echo Updating...
echo.
if /i exist Airline_Simulator.bat" del Airline_Simulator.bat
wget "http://interversesoftware.weebly.com/uploads/4/8/5/8/48585729/airline_simulator.bat")
set version=2.0
wget
是一个第三方程序,不与 Windows 捆绑在一起,因此您需要显式安装它才能使用它。
您可以在此处找到(其中之一)Windows 版本:http://gnuwin32.sourceforge.net/packages/wget.htm http://gnuwin32.sourceforge.net/packages/wget.htm
您将需要添加wget.exe
文件到你的PATH
环境变量,以便像上面的批处理文件中那样调用可执行文件,而无需显式指定路径。
对于 Windows 10:此处提供了一个很好的链接:https://builtvisible.com/download-your-website-with-wget/ https://builtvisible.com/download-your-website-with-wget/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)