美文网首页实际工程实践
制作Windows EXE安装包常用批处理命令

制作Windows EXE安装包常用批处理命令

作者: Cheava | 来源:发表于2018-01-22 17:34 被阅读89次

本地服务:

net start MySQL
sc config MySQL start= auto

防火墙:

netsh advfirewall firewall add rule name=Mysql(TCP-In-3306) protocol=TCP dir=in localport=3306 action=allow

环境变量:

setx Path "%jrepath%\bin;%Path%" -m//系统环境变量
setx Path "%jrepath%\bin;%Path%" //本地环境变量

写入注册表:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /t REG_SZ /d "%%JAVA_HOME%%\bin;%%JAVA_HOME%%\jre\bin;%Path%" /f

相关文章

网友评论

    本文标题:制作Windows EXE安装包常用批处理命令

    本文链接:https://www.haomeiwen.com/subject/jecraxtx.html