Timeline for Pass string array as a parameter to a powersell script using Runtime.exec(...)
Current License: CC BY-SA 3.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 31, 2016 at 12:19 | history | edited | TENNO | CC BY-SA 3.0 |
added 21 characters in body
|
Oct 30, 2016 at 23:28 | history | edited | Ansgar Wiechers | CC BY-SA 3.0 |
improved formatting
|
Oct 30, 2016 at 23:20 | answer | added | Ansgar Wiechers | timeline score: 0 | |
Oct 30, 2016 at 18:58 | comment | added | Heri | sorry, I have no further tip | |
Oct 30, 2016 at 18:51 | comment | added | TENNO | @Heri I still can't make it work, please check 'Update #1' section | |
Oct 30, 2016 at 18:50 | history | edited | TENNO | CC BY-SA 3.0 |
added 336 characters in body
|
Oct 30, 2016 at 18:36 | comment | added | TENNO | @Heri I got your point, I'll try that | |
Oct 30, 2016 at 18:30 | comment | added | Heri | the script does not know where the arguments come from. The linked answer above suggest to embed the given array into parantheses. I would pass it to the Runtime args as one string (with the parantheses). | |
Oct 30, 2016 at 18:25 | comment | added | TENNO | @Heri It should work if I'm passing it form another script, but it's a different case | |
Oct 30, 2016 at 18:23 | comment | added | Heri | maybe this anwer helps: stackoverflow.com/questions/7152740/… | |
Oct 30, 2016 at 18:17 | comment | added | TENNO | @Heri, I expect to see both names in that array [I updated the script in the question] | |
Oct 30, 2016 at 18:16 | comment | added | TENNO | @PetSerAl you are right, it's a typo and I updated the question | |
Oct 30, 2016 at 18:16 | history | edited | TENNO | CC BY-SA 3.0 |
added 2 characters in body
|
Oct 30, 2016 at 18:13 | comment | added | Heri | And what do you expect to receive if you issue a "echo $names"? | |
Oct 30, 2016 at 18:08 | history | asked | TENNO | CC BY-SA 3.0 |