How do i find current path to Virtual Machines for Parallels Desktop?

Alexander3

Bit poster
I need to get somehow a folder, where are placed my virtual machines (in bash script).

Currently i use the following code get this path in the command line:
Code:
# Retrieve parallels home, substr & trim
PARALLELS_PATH=`prlsrvctl info | grep 'VM home' | cut -d':' -f2 | xargs`

It works, but i don't like really to parse plain-text output. Is it the only way to do this, or perhaps you could advise better one?
 
Last edited:
Back
Top