#!/bin/sh

VMWARECMD=/usr/local/bin/vmware-cmd

if [ $# -gt 0 ] ; then
    vm=`$VMWARECMD -l | grep $1`
fi

if [ -z $vm ] ; then
    for vm in `$VMWARECMD -l` ; do
        echo $vm
        $VMWARECMD $vm getconfig ide1:0.fileName
    done
else
    echo $vm
    $VMWARECMD $vm getconfig ide1:0.fileName
fi									
