windows - Passing variables to java process -
i not sure if possible know if possible pass variable java process?
my code is:
process process = runtime.getruntime().exec("cmd /c *curl command* -o "file.png");
and want like:
int x = 0; process process = runtime.getruntime().exec("cmd /c *curl command* -o "filex.png"); x++;
this way can have output like:
file0.png file1.png file2.png
any great. in advance.
you're building string.
for (int x=0;x<max;x++){ string command = "cmd /c curl command -o \"file" + x + ".png\""; // use it! }
Comments
Post a Comment