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

Discussion in 'General Questions' started by Alexander3, Jul 23, 2015.

  1. Alexander3

    Alexander3 Bit poster

    Messages:
    5
    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: Jul 23, 2015
  2. Manoj@Parallels

    Manoj@Parallels Parallels Support Parallels Support

    Messages:
    491

Share This Page