I have a getlocation.exe file which gives the file path of application when I run it from the command prompt in windows. I'm looking to execute this command from Java code and assign the output to string variable.
eg: if the output of the command is C:/application/home I need this path to be assigned in a string variable