Here is my code from the jna sample i am try using native code to run cmd command
boolean status = Kernel32.INSTANCE.CreateProcess(
null,
"cmd.exe /c echo here is output",
null,
null,
true,
new WinDef.DWORD(0),
Pointer.NULL,
System.getProperty("java.io.tmpdir"),
startupInfo,
processInformation);
When i run the code i got this in the Compiler
here is output
Is any way to store the Above Output in a string value