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

Popular posts from this blog

html - Difficulties with background-image property -

ios - Segue not passing data between ViewControllers -

visual studio code - What does the isShellCommand property actually do and how should you use it? -