参考地址:https://www.cnblogs.com/dingjiaoyang/p/9990188.html 运行test.bat 执行 test.sql文件 test.bat: @ECHO OFF SET dbhost=127.0.0.1 SET dbuser=root SET dbpasswd=123456 SET dbName=test SET sqlpath=%~dp0 set sqlfile=test.sql cd C:\Program Files\MySQL\MySQL Serv
start.bat set MY_HOME=%~dp0 set JMS_BINDING_PATH=%MY_HOME%..\binds set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_08\ set path=%path%;%JAVA_HOME%bin; set CLASSPATH=.;%JAVA_HOME%lib\tools.jar;%JAVA_HOME%lib\dt.jar;%MY_HOME%..\bomc-sa-tdagent.jar;%MY_HO
前提:java项目要有main方法 类似写法如下: set JAVA_HOME=C:\jdk1.6 set LIB_HOME=. set JAVA_JAR=. set JAVA_JAR=%JAVA_JAR%;%LIB_HOME%\CacheDB.jar set JAVA_JAR=%JAVA_JAR%;%LIB_HOME%\jdom.jar set JAVA_JAR=%JAVA_JAR%;%LIB_HOME%\jdbc2_0-stdext.zip set JAVA_JAR=%JAVA_JAR%;%
目的:在服务器桌面创建一个bat文件执行tomcat下的startup.bat文件,这样就不用每次都去文件夹下找startup.bat文件 桌面bat文件内容: @echo off start D:\url\startup.bat exist 报错:The CATALINA_HOME environment variable is not defined correctlyThis environment variable is needed to run this program 原因:执行s
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Data.SqlClient; using System.Data; using System.Diagnostics; namespace Sample2 { class Progra