verb/test()
var/x=test2()
proc/test2(a)
return shell("powershell netstat -a -n -o | findstr 9090")
Problem description: I'm trying to get an ID on Windows (using PowerShell) and then save it to a VAR..... this is possible in some way ??
ID:2668509
![]() Mar 30 2021, 4:35 pm (Edited on Mar 30 2021, 4:46 pm)
(See the best response by Lummox JR.)
|
|
Code:
verb/test() Problem description: I'm trying to get an ID on Windows (using PowerShell) and then save it to a VAR..... this is possible in some way ?? |
![]() Mar 30 2021, 7:53 pm
Best response
|
|
I don't recall if shell() takes a return value. Seems like it'd be easier to write your result into a file and file2text() that.
|