Forum Discussion
jose_pita
12 years agoSuper Contributor
getJavaVersion.bat :
cd C:\myFolder\
java -version
pause
after running the bat on TC, use this function:
function assddasd()
{
var proc = Sys.FindChild("ProcessName", "cmd"); // Obtains the process by its name
Log.Message(aqString.SubString(proc.child(0).wText,122,80)) //set the indexes as you need
}
cd C:\myFolder\
java -version
pause
after running the bat on TC, use this function:
function assddasd()
{
var proc = Sys.FindChild("ProcessName", "cmd"); // Obtains the process by its name
Log.Message(aqString.SubString(proc.child(0).wText,122,80)) //set the indexes as you need
}