|
|
|
|
@ -197,9 +197,9 @@ func CopyExportedVirtualMachine(expPath string, outputPath string, vhdDir string
|
|
|
|
|
|
|
|
|
|
var script = `
|
|
|
|
|
param([string]$srcPath, [string]$dstPath, [string]$vhdDirName, [string]$vmDir)
|
|
|
|
|
Copy-Item -Path $srcPath/$vhdDirName -Destination $dstPath -recurse
|
|
|
|
|
Copy-Item -Path $srcPath/$vmDir -Destination $dstPath
|
|
|
|
|
Copy-Item -Path $srcPath/$vmDir/*.xml -Destination $dstPath/$vmDir
|
|
|
|
|
Move-Item -Path $srcPath/*.* -Destination $dstPath
|
|
|
|
|
Move-Item -Path $srcPath/$vhdDirName -Destination $dstPath
|
|
|
|
|
Move-Item -Path $srcPath/$vmDir -Destination $dstPath
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
var ps powershell.PowerShellCmd
|
|
|
|
|
|