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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -