A bat file that uses Java in windows

Contents

@echo off

cd %~dps0

SET CLASSPATH=%CLASSPATH%;gson-2.3.1.jar
SET CLASSPATH=%CLASSPATH%;mongo-java-driver-2.14.3.jar

SET DATETIME=%date:~-10,4%%date:~-5,2%%date:~-2,2%%time:~0,2%%time:~3,2%%time:~6,2%
SET RESULT_FILE_KPF=%~dps0result\%DATETIME%\favorite_kpf.txt
SET PROPERTIES_FILE=%~dps0env_Accountadditionals.properties

SET INPUT_FILE_KPF=%RESULT_FILE_KPF%
SET RESULT_FILE_KPF_URL=%~dps0result\%DATETIME%\favorite_kpf_url.txt
SET RESULT_FILE_KPF_DATE=%~dps0result\%DATETIME%\favorite_kpf_date.txt
SET RESULT_FILE_KPF_UNIQUEID=%~dps0result\%DATETIME%\favorite_kpf_uniqueId.txt

javac -encoding UTF-8 DataCollect_DB_Accountadditionals_kpf.java
javac -encoding UTF-8 DataCollect_Accountadditionals_kpf_url.java
javac -encoding UTF-8 DataCollect_Accountadditionals_kpf_date.java
javac -encoding UTF-8 DataCollect_Accountadditionals_kpf_uniqueId.java

java DataCollect_DB_Accountadditionals_kpf %RESULT_FILE_KPF% %PROPERTIES_FILE%
java DataCollect_Accountadditionals_kpf_url %INPUT_FILE_KPF% %RESULT_FILE_KPF_URL%
java DataCollect_Accountadditionals_kpf_date %INPUT_FILE_KPF% %RESULT_FILE_KPF_DATE%
java DataCollect_Accountadditionals_kpf_uniqueId %INPUT_FILE_KPF% %RESULT_FILE_KPF_UNIQUEID%

Recommended Posts

A bat file that uses Java in windows
How to implement a job that uses Java API in JobScheduler
Java that outputs vmg format file in eml format
Read a string in a PDF file with Java
Sample program that returns the hash value of a file in Java
[Java] Implement a function that uses a class implemented in the Builder pattern
Write a class that can be ordered in Java
Develop a Java application that uses Amazon SQS (Part 1)
How to convert a file to a byte array in Java
Develop a Java application that uses Amazon SQS (Part 2)
Java11: Run Java code in a single file as is
A library that realizes multi-line strings in Java multiline-string
Change java encoding in windows
Find a subset in Java
Create a jar file that can be executed in Gradle
Resolve CreateProcess error = 206 when running Java in a Windows environment
Activate Excel file A1 cell of each sheet in Java
[MQTT / Java] Implemented a class that does MQTT Pub / Sub in Java
Java version notation that changes in Java 10
3 Implement a simple interpreter in Java
I created a PDF in Java.
Upload a file using Java HttpURLConnection
Log output to file in Java
A simple sample callback in Java
About file copy processing in Java
Get stuck in a Java primer
Get the public URL of a private Flickr file in Java
[Java] Returns a Japanese name file in filename of HTTP header
Read items containing commas in a CSV file without splitting (Java)
Sample code that uses the Mustache template engine JMustache in Java
About returning a reference in a Java Getter
What is a class in Java language (3 /?)
How to test a private method in Java and partially mock that method
A story about a Spring Boot project written in Java that supports Kotlin
Call the Windows Notification API in Java
To create a Zip file while grouping database search results in Java
Memo: [Java] If a file is in the monitored directory, process it.
Java creates a pie chart in Excel
Build a web application development environment that uses Java, MySQL, and Redis with Docker CE for Windows
What is a class in Java language (1 /?)
What is a class in Java language (2 /?)
Why does Java call a file a class?
Create a TODO app in Java 7 Create Header
Try making a calculator app in Java
Read xlsx file in Java with Selenium
Implement something like a stack in Java
Split a string with ". (Dot)" in Java
Creating a matrix class in Java Part 1
Sample to unzip gz file in Java
A story about running a program that copies files in Java from a bat file to make the work done every day a little more efficient
[Java] Difference between equals and == in a character string that is a reference type
How to ZIP a JAVA CSV file and manage it in a Byte array
Let's create a versatile file storage (?) Operation library by abstracting file storage / acquisition in Java
Check with Java / Kotlin that files cannot be written in UAC on Windows
I made a primality test program in Java
GetInstance () from a @Singleton class in Groovy from Java
Two ways to start a thread in Java + @
Create a CSR with extended information in Java
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
A story about the JDK in the Java 11 era
How to display a web page in Java