I use a VMWare utility to mount/unmount virtual disks (.vmdk) via script. In order to see/repro the issue you would need to download the utility from here:
https://my.vmware.com/web/vmware/detail ... on_history
I'm using windows so you'll need to choose the "Windows" download.
Also, it may ask you to create a user/login in order to download but the utility is free.
EDIT: I uploaded the mount utility in case anyone else wants to download without creating a vmware account. The file is here: https://storage-eu.gmx.com/qx/gmx_com_eu/?locale=en&guestToken=cWkMdW8TTDGQWaO_9WaUZg&loginName=365@gmx.com
it is a .7z password-protected file - the password is: dostips
After installing, here is the command that I run and the output: "No volumes mounted."
Code: Select all
C:\Program Files (x86)\VMware\VMware Virtual Disk Development Kit\bin>vmware-mount.exe /L
No volumes mounted.
Yet "temp.txt" is always empty (as seen in the above screen output).
It looks like it is using stdout - see the following tests/results:
Code: Select all
C:\Program Files (x86)\VMware\VMware Virtual Disk Development Kit\bin>vmware-mount.exe /L 1>temp.txt
C:\Program Files (x86)\VMware\VMware Virtual Disk Development Kit\bin>vmware-mount.exe /L 2>temp.txt
No volumes mounted.
C:\Program Files (x86)\VMware\VMware Virtual Disk Development Kit\bin>type temp.txt
C:\Program Files (x86)\VMware\VMware Virtual Disk Development Kit\bin>
I've tried:
piping with for loops
Using alternate "Tee" utilities
launchng another cmd.exe process to get the output
and other things but for some reason I just can't seem to capture the output. Anyone have any ideas?