I'm kinda new in Java and even more in batch, I'm working on a little program that auto check bunch of specific files in a folder, however at this point, I need to use a Scanner in Java to read the path of the folder I want to check and I wonder what would I need to just have to drag and drop the folder into my batch to execute this application
Here is the start of my application with the scanner
public static void main (String[] args) {
System.out.print("Locators folder : ");
Scanner sc = new Scanner(System.in);
String path = sc.next();
sc.close();
File[] folders = new File(path).listFiles();
And here is the batch even if it won't bring much info
@ECHO off
"C:\Program Files\Java\jdk-13.0.2\bin\java.exe" -jar "E:\Hugo\Documents\_Quadrica\afc.jar"