Article ID: 3067, created on Nov 13, 2007, last review on Apr 18, 2012

  • Applies to:
  • Virtuozzo containers for Windows 4.0


Starting from Virtuozzo 4.0 version %VZ_ROOTDIR% environment variable is not used anymore.

In case of using any custom scripts where this variable is required we can suggest to retrieve Virtuozzo root folder from the registry.

The following command used in CMD script file will set the VZROOT_VALUE variable to the VZROOT value taken from registry:

for /F "skip=2 tokens=1,2,3 usebackq" %%i in (`REG QUERY "HKLM\SOFTWARE\SWSoft\Virtuozzo" /v VZROOT`) do set VZROOT_VALUE=%%k

Note: During upgrade from 3.5.1 to 4.0 the environment variable is not removed. The variable can be removed manually if necessary.

28d0f7cc091e3b9304fa556c03f9a940 965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF