Copy the folder structure correctly

This commit is contained in:
Taliesin Sisson 2015-07-16 20:48:08 +01:00
parent 5f2c12324c
commit efafed4f37
1 changed files with 3 additions and 3 deletions

View File

@ -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