Virtual PC Guest OS Performance Tips Part 3 of 3 — Boot VPC’s in a Minute!!!!

So here’s the trick to boot your VPC’s in a minute, for VPCs you can set them up so that you can close them and when you restart you are resumed to with a save state.  I did have one initial problem with using a variable in the original batch file(%0), but I hard coded the paths I got it working:


  1. Setup your VPC as normal with undo disks disabled.
  2. Shutdown the VPC.
  3. Enable undo disks.
  4. Start the VPC, and get everything to the state you want to begin your demo – apps running etc.
  5. Close the VPC, select to save state and save changes and commit changes to the virtual disk.
  6. Edit the VPC settings, and change the close setting to automatically close without a message and turn off and delete changes.
  7. Create a sub folder under the VPC folder called “Resume”.
  8. Copy the .VMC and the .VSV file from the VPC folder into the “Resume” folder.
  9. Create a batch file in the VPC folder:  

Original batch file (I could not get the %0 to work);en-us;318689


@echo off

robocopy "%0\..\Resume" "%0\.." /r:0

start "VPC" /min "C:\Program Files\Microsoft Virtual PC\Virtual PC.exe"

start "Sandbox DC" "%0\..\whatever.vmc"


            The one I got to work (just hard coded the paths to the files)


            @echo off

robocopy "C:\Documents and Settings\mhester\My Documents\My Virtual Machines\test\Resume" "C:\Documents and Settings\mhester\My Documents\My Virtual Machines\test" /r:0

start "VPC" /min "C:\Program Files\Microsoft Virtual PC\Virtual PC.exe"

start "London DCex" "C:\Documents and Settings\mhester\My Documents\My Virtual Machines\test\test.vmc"


(Obviously, change whatever.vmc to whatever your VPC is called – and you’ll need robocopy.exe somewhere on your path)


            You can download robocopy with the windows resource kit utilities:


  1. Now you can start your VPC by running the batch file, and it will start in seconds to the point that you created the save state.    

So give it a try and let me know what you think!!!!

Comments (3)

  1. Anonymous says:

    Good afternoon everyone!  Thank you for attending the web cast on Virtual Server.  You kept…

  2. Anonymous says:

    I have some fantastic news, we have just announced, we are giving away Virtual PC for free!  Just…

  3. Anonymous says:

    Thank you for attending the webcast! I hope you enjoyed and getting a look at Microsoft virtualization

Skip to main content