How to get a folder of virtual machines on Win7?
I am writing a tool called XP-More that should help manage Windows 7 virtual machines. The first thing to do on startup is to find the VM folder. However, it turns out that the folder is not listed as a special Windows folder. I am using a workaround, but it is unreliable. Perfectly,
Environment.GetFolderPath(Environment.SpecialFolder.VMFolder)
or so would do the job, but VMFolder is a fantasy of my imagination. Is there any real way to get this folder?
a source to share
@ m0sa - your solution works for Microsoft Virtual PC , but Windows 7 comes with an option called Windows Virtual PC , which seems to be slightly different. For example, on my Windows 7, there is neither myvirtualmachines environment variable nor anything else pointing to the actual folder.
(sorry for writing this as an answer. I know it sucks, but I can't add comments at this point)
a source to share