| 1. |
Solve : Batch asking question to add value to jar parameter? |
|
Answer» hello all Code: [Select]echo off Additionally, the path variable is a system variable and shouldn't be used as a general purpose variable name, and when you are adding a folder to the path then you can use something like this Code: [Select]set "path=%path%;c:\new\folder" Quote from: foxidrive on November 06, 2014, 04:15:06 AM Additionally, the path variable is a system variable and shouldn't be used as a general purpose variable name,Good catch. I was so focused on the code errors I must have glazed over that. Thanks ! now it looks like this : Code: [Select]echo off path=%path%;d:\AUXID\ set input= set /p input=input the CipherValue "C:\Program Files (x86)\Java\jre8\bin\java.exe" -jar d:\AUXID\SeedDecrypt.jar Ciphervalue %input% hex-key 1FF7738D8A8C5040DC68B9CB4E8DE2A2 >>d:\AUXID\SeedDecrypt.txt echo see file d:\AUXID\SeedDecrypt.txt for infos. echo. pause exit I still have the Java error, but I GUESS it's because I input random $hit. and still my txt file is at 0KB.Not sure why you are screwing around with path variable. It is not needed in your script at all. We would have no idea how to debug your Java program. But I am pretty sure you batch code is rock solid now.Thanks for the Help ! Took out the path variable like you said. Now I just have to figure out the java error. Thanks a lot ! |
|