window dos file batch file create

2011.11.03 17:24분류없음

@echo " " >> D:\Project\skan\skan_HR\Source\Log\AttendanceBatch_%date:~0,4%%date:~5,2%%date:~8,2%.log
@echo " " >> D:\Project\skan\skan_HR\Source\Log\AttendanceBatch_%date:~0,4%%date:~5,2%%date:~8,2%.log
@echo ################### HR Attendance Batch Start ( %date% %time% ) ################### >> D:\Project\skan\skan_HR\Source\Log\AttendanceBatch_%date:~0,4%%date:~5,2%%date:~8,2%.log

set JAVA_CMD=%JAVA_HOME%\bin\java
set MAIN_CLASS=ehr.gh.calendarCtrl.DayAttendanceFinish
set CLASSPATH=../Web root/WEB-INF/lib/ojdbc14_g.jar;../Web root/WEB-INF/classes/;D:/Project/skan/skan_HR/Source/skan_jdf.jar;../Web root/WEB-INF/lib/servlet.jar;

"%JAVA_CMD%" -classpath "%CLASSPATH%" %MAIN_CLASS% >> D:\Project\skan\skan_HR\Source\Log\AttendanceBatch_%date:~0,4%%date:~5,2%%date:~8,2%.log

@echo ################### HR Attendance Batch End ( %date% %time% ) ################### >> D:\Project\skan\skan_HR\Source\Log\AttendanceBatch_%date:~0,4%%date:~5,2%%date:~8,2%.log